TAILIEUCHUNG - Introduction to Java: 12 Image Processing

Tham khảo tài liệu 'introduction to java: 12 image processing', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 12 In this chapter ImageObserver ColorModel ImageProducer ImageConsumer ImageFilter Image Processing The image processing parts ofJava are buried within the package. The package consists of three interfaces and eleven classes two of which are abstract. They are as follows The ImageObserver interface provides the single method necessary to support the asynchronous loading of images. The interface implementers watch the production of an image and can react when certain conditions arise. We briefly touched on ImageObserver when we discussed the Component class in Chapter 5 Components because Component implements the interface. The ImageConsumer and ImageProducer interfaces provide the means for low level image creation. The ImageProducer provides the source of the pixel data that is used by the ImageConsumer to create an Image. The PixelGrabber and ImageFilter classes along with the AreaAveragingScaleFilter CropImageFilter RGBImageFilter and ReplicateScaleFilter subclasses provide the tools for working with images. PixelGrabber consumes pixels from an Image into an array. The ImageFilter classes modify an existing image to produce another Image instance. CropImageFilter makes smaller images RGBImageFilter alters pixel colors while AreaAveragingScaleFilter and ReplicateScaleFilter scale images up and down using different algorithms. All of these classes implement ImageConsumer because they take pixel data as input. MemoryImageSource and FilteredImageSource produce new images. MemoryImageSource takes an array and creates an image from it. FilteredImage-Source uses an ImageFilter to read and modify data from another image and produces the new image based on the original. Both MemoryImageSource and FilteredImageSource implement ImageProducer because they produce new pixel data. 404 ImageObserver 405 ColorModel and its subclasses DirectColorModel and IndexColorModel provide the palette of colors available when creating an image or tell you the palette .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.