#include <gfx_image_pixelblend.h>
This class allows to implement and use pixel blending methods. Each pixel blending should has it's own implementation. A enumeration of all available blending methods can be found under ImagePixelBlends registry.
Public Member Functions | |
MAXON_METHOD Result< BlendPixelHandlerStruct > | GetBlendPixelHandler (const PixelFormat &bgFormat, const ChannelOffsets &bgChannelOffsets, const PixelFormat &fgFormat, const ChannelOffsets &fgChannelOffsets, Float opacity) const |
Static Public Member Functions | |
static MAXON_METHOD Result< PixelFormat > | GetOptimalPixelFormat (const Block< PixelFormat > &formats) |
Private Member Functions | |
MAXON_INTERFACE (ImagePixelBlendInterface, MAXON_REFERENCE_CONST, "net.maxon.image.interface.imagepixelblend") | |
|
private |
|
static |
GetOptimalPixelFormat returns the optimal blending PixelFormat.
[in] | formats | Input formats to respect. Depending on that formats the result might change. |
MAXON_METHOD Result<BlendPixelHandlerStruct> GetBlendPixelHandler | ( | const PixelFormat & | bgFormat, |
const ChannelOffsets & | bgChannelOffsets, | ||
const PixelFormat & | fgFormat, | ||
const ChannelOffsets & | fgChannelOffsets, | ||
Float | opacity | ||
) | const |
GetBlendPixelHandler create a handler object to be used when conversion pixel data.
[in] | bgFormat | PixelFormat for the background layer. |
[in] | bgChannelOffsets | Channel offsets for the background layer. |
[in] | fgFormat | PixelFormat for the foreground layer. |
[in] | fgChannelOffsets | Channel offsets for the foreground layer. |
[in] | opacity | Blend opacity to use. |