|String||getFormatName () override|
|Returns a description of this file format. More...|
|bool||usesFileExtension (const File &) override|
|Returns true if this format uses the file extension of the given file. More...|
|bool||canUnderstand (InputStream &) override|
|Returns true if the given stream seems to contain data that this format understands. More...|
|Image||decodeImage (InputStream &) override|
|Tries to decode and return an image from the given stream. More...|
|bool||writeImageToStream (const Image &, OutputStream &) override|
|Attempts to write an image to a stream. More...|
|Public Member Functions inherited from ImageFileFormat|
|Static Public Member Functions inherited from ImageFileFormat|
|static ImageFileFormat *||findImageFormatForStream (InputStream &input)|
|Tries the built-in formats to see if it can find one to read this stream. More...|
|static ImageFileFormat *||findImageFormatForFileExtension (const File &file)|
|Looks for a format that can handle the given file extension. More...|
|static Image||loadFrom (InputStream &input)|
|Tries to load an image from a stream. More...|
|static Image||loadFrom (const File &file)|
|Tries to load an image from a file. More...|
|static Image||loadFrom (const void *rawData, size_t numBytesOfData)|
|Tries to load an image from a block of raw image data. More...|
|Protected Member Functions inherited from ImageFileFormat|
|Creates an ImageFormat. More...|
A subclass of ImageFileFormat for reading GIF files.
Constructor & Destructor Documentation
Member Function Documentation
Returns a description of this file format.
E.g. "JPEG", "PNG"
Returns true if this format uses the file extension of the given file.
Returns true if the given stream seems to contain data that this format understands.
The format class should only read the first few bytes of the stream and sniff for header bytes that it understands.
Note that this will advance the stream and leave it in a new position, so if you're planning on re-using it, you may want to rewind it after calling this method.
- See also
Tries to decode and return an image from the given stream.
This will be called for an image format after calling its canUnderStand() method to see if it can handle the stream.
input the stream to read the data from. The stream will be positioned at the start of the image data (but this may not necessarily be position 0)
- the image that was decoded, or an invalid image if it fails.
- See also
Attempts to write an image to a stream.
To specify extra information like encoding quality, there will be appropriate parameters in the subclasses of the specific file types.
- true if it nothing went wrong.
The documentation for this class was generated from the following file:
Generated on Fri Jan 12 2018 09:51:19 for JUCE by 1.8.13