#include <gfx_image.h>

The ImageInterface represents a single image with a ImageTextureRef. one or more Images can be part of a ImageTextureRef.
| Public Member Functions | |
| MAXON_METHOD Result< void > | Init (Int width, Int height, const Class< ImagePixelStorage > &storageFormat, const PixelFormat &pixelFormat, const Block< Pix > *defaultColor=nullptr) | 
| Private Member Functions | |
| MAXON_INTERFACE (ImageInterface, MAXON_REFERENCE_NORMAL, "net.maxon.image.interface.image") | |
| 
 | private | 
| MAXON_METHOD Result<void> Init | ( | Int | width, | 
| Int | height, | ||
| const Class< ImagePixelStorage > & | storageFormat, | ||
| const PixelFormat & | pixelFormat, | ||
| const Block< Pix > * | defaultColor = nullptr | ||
| ) | 
Initializes the pixel storage.
| [in] | width | Width of the image data. | 
| [in] | height | Height of the image data. | 
| [in] | storageFormat | Storage format of the pixel data. | 
| [in] | pixelFormat | Pixel format of the pixel storage. | 
| [in] | defaultColor | Optional default color to return if no image data is present. Must be in the given PixelFormat. Can be nullptr. |