ImagePixelBlendInterface Class Reference Graphics

#include <gfx_image_pixelblend.h>

Inheritance diagram for ImagePixelBlendInterface:

详细描述

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")

成员函数文档编制

◆  MAXON_INTERFACE()

MAXON_INTERFACE ( ImagePixelBlendInterface   ,
MAXON_REFERENCE_CONST   ,
"net.maxon.image.interface.imagepixelblend"   
)
private

◆  GetOptimalPixelFormat()

static MAXON_METHOD Result <PixelFormat> GetOptimalPixelFormat ( const Block < PixelFormat > &  formats )
static

GetOptimalPixelFormat returns the optimal blending PixelFormat.

参数
[in] formats Input formats to respect. Depending on that formats the result might change.
返回
Optimal blending pixel format to deliver to GetBlendPixel() function.

◆  GetBlendPixelHandler()

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.
返回
BlendPixelHandlerStruct on success. On that object BlendPixel() can be called to use the optimized blending function for a line of pixels.