IXC_ColorFlags Enumeration

From PDF XChange PDF SDK
Revision as of 07:11, 20 May 2015 by Dsbot (Talk | contribs) (Automatic page editing by robot)

Jump to: navigation, search

IXC_ColorFlags flags which specifies how the data will be copied

Syntax

enum IXC_ColorFlags
{
    Color_Index     = 1,
    Color_Nearest   = 2,
    Color_Grayscale = 2,
    Color_AddColor  = 3,
    Color_UseAlpha  = 4,
};

Constants

Color_Index
This flag may be used when the destination page is Indexed (has palette).If this flag is not specified, and there is no corresponding color in the palette.
Color_Nearest
This flag may be used when the destination page is Indexed (has palette). When specified, in the situation where the color from the source page isn't present within the palette of the destination page, it will be replaced with the nearest color from this palette. If this flag is not specified, and there is no corresponding color in the palette, IIXC_Page::Place will fail.
Color_Grayscale
This flag may be used when the destination page is Grayscale. When the flag is specified, in the situation where the copied pixel from source page isn't gray, it will be automatically converted to a gray level. If this flag is not specified, and the copied pixel isn't gray.
Color_AddColor
This flag may be used when the destination page is Indexed (has palette). When the flag is specified, in the situation where the color from the source page isn't present within the palette of the destination page, IIXC_Page::Place will try to add this color to destination page's palette. If there is no free space within the palette, IIXC_Page::Place will fail.
Color_UseAlpha
This flag may be used when the source page has an alpha channel. When specified, before copying data, the alpha channel will be applied. If this flag isn't specified, the alpha channel will be not premultiplied. The flag will be ignored if the destination page has no alpha channel.

See Also

IIXC_Page::Place
IIXC_Page::AlphaPlace
IIXC_Page::Tile
IIXC_Page::AlphaTile
IIXC_Page::Deskew
IIXC_Page::FreeRotate
IIXC_Page::Fill
IIXC_Page::SetPixel
IIXC_Page::ReplaceColor
IIXC_Page:Shear