ImageInterface Class Reference Graphics

#include <gfx_image.h>

Inheritance diagram for ImageInterface:

详细描述

The ImageInterface represents a single image with a ImageTextureRef. one or more Images can be part of a ImageTextureRef.

公共成员函数

MAXON_METHOD Result < void >  Init ( Int width, Int height, const Class < ImagePixelStorage > &storageFormat, const PixelFormat &pixelFormat, const Block < Pix > *defaultColor=nullptr)

私有成员函数

  MAXON_INTERFACE ( ImageInterface , MAXON_REFERENCE_NORMAL , "net.maxon.image.interface.image")

成员函数文档编制

◆  MAXON_INTERFACE()

MAXON_INTERFACE ( ImageInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.image.interface.image"   
)
private

◆  Init()

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.
返回
OK on success.