ImageFunctionsInterface Class Reference

#include <gfx_image.h>

Detailed Description

Helper functions for image classes.

Static Public Member Functions

static MAXON_METHOD Result< ImageBaseRef > CreateSubImagePart (const ImageBaseRef &imageRef, const DrawRectInt &rect)
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL (ImageFunctionsInterface, MAXON_REFERENCE_STATIC, "net.maxon.image.interface.imagefunctions", MAXON_IMPLEMENTATION_MODULE("net.maxon.image"))
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( ImageFunctionsInterface  ,
MAXON_REFERENCE_STATIC  ,
"net.maxon.image.interface.imagefunctions"  ,
MAXON_IMPLEMENTATION_MODULE("net.maxon.image")   
)
private

◆ CreateSubImagePart()

static MAXON_METHOD Result<ImageBaseRef> CreateSubImagePart ( const ImageBaseRef &  imageRef,
const DrawRectInt rect 
)
static

Create a new ImageBaseRef as a sub image of the given image with the given rectangle. The image will not be copied! It generates only a reference to the original image with the rectangle set to the portion of the image.

Parameters
[in]imageRefImage to be referenced.
[in]rectPart of the image.
Returns
New Image as part of the given image.