This base class is for handlers that control a type of image manipulation format, e.g. More...
#include <juce_Image.h>
Public Member Functions | |
ImageType () | |
virtual | ~ImageType () |
virtual ImagePixelData::Ptr | create (Image::PixelFormat, int width, int height, bool shouldClearImage) const =0 |
Creates a new image of this type, and the specified parameters. | |
virtual int | getTypeID () const =0 |
Must return a unique number to identify this type. | |
virtual Image | convert (const Image &source) const |
Returns an image which is a copy of the source image, but using this type of storage mechanism. | |
This base class is for handlers that control a type of image manipulation format, e.g.
an in-memory bitmap, an OpenGL image, CoreGraphics image, etc.
ImageType::ImageType | ( | ) |
|
virtual |
|
pure virtual |
Creates a new image of this type, and the specified parameters.
Implemented in NativeImageType, OpenGLImageType, and SoftwareImageType.
|
pure virtual |
Must return a unique number to identify this type.
Implemented in NativeImageType, OpenGLImageType, and SoftwareImageType.
Returns an image which is a copy of the source image, but using this type of storage mechanism.
For example, to make sure that an image is stored in-memory, you could use: