#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.
公共成员函数 |
|
MAXON_METHOD Result < BlendPixelHandlerStruct > | GetBlendPixelHandler (const PixelFormat &bgFormat, const ChannelOffsets &bgChannelOffsets, const PixelFormat &fgFormat, const ChannelOffsets &fgChannelOffsets, Float opacity) const |
静态公共成员函数 |
|
static MAXON_METHOD Result < PixelFormat > | GetOptimalPixelFormat (const Block < PixelFormat > &formats) |
私有成员函数 |
|
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. |