![]() ![]() Responsible for handling the named format. Unregisters the ImageCodec object currently Tests whether the color indices represent a gray-scale image.Īssociates an ImageCodec with its format name, asĭetermined by its getFormatName() method. Returns true if the format is recognized in the Returns the number of bytes of header needed to recognize theįormat, or 0 if an arbitrary number of bytes may be needed. Subclass of ImageEncodeParam to be used with thisįor writing the given RenderedImage, using the Of registered ImageCodecs that may be appropriate Returns an array of Strings indicating the names Subclass of ImageDecodeParam to be used with this Returns a Class object indicating the proper Returns the ImageCodec associated with the given Returns an ImageEncoder object suitable forĮncoding to the supplied OutputStream, using the Implementation of the ImageEncoder interface Returns an ImageDecoder object suitable forĭecoding from the supplied File, using theĭecoding from the supplied InputStream, using theĭecoding from the supplied SeekableStream, using the Implementation of the ImageDecoder interface In a concrete subclass of ImageCodec, returns an Returns an implementation of the ImageDecoder IndexColorModel suitable for the given 1-banded Object are suitable for encoding by this ImageCodec.ĬreateComponentColorModel( SampleModel sm)Ī convenience method to create an instance ofĬomponentColorModel suitable for use with theĬreateGrayIndexColorModel( SampleModel sm,Ī convenience methods to create an instance of Returns true if the given image and encoder param It mayīe removed or changed in future releases of JAI.Īllow only subclasses to instantiate this class. This class is not a committed part of the JAI API. The number of header bytes required to recognize the format.Įach subclass of ImageCodec needs to implement only GetNumHeaderBytes() method, which returns 0 ifĪrbitrary access to the stream is required, and otherwise returns Which variant should beĬalled is determined by the output of the codec's Wither by inspection of a fixed-length file header or byĪrbitrary access to the source data stream.įormat recognition is performed by two variants of the It may be used as the name parameter in theĬreateImageEncoder() and createImageDecoder()Īre able to perform recognition of their particular format, Once a codec has been registered, the format name associated with Instances of ImageCodec may be registered. Public abstract class ImageCodec extends ObjectĪn abstract class allowing the creation of image decoders andĮncoders. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |