IXC_ColorFlags Enumeration

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
 
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IXC_ColorFlags Enumeration}}
 
{{#customTitle:IXC_ColorFlags Enumeration}}
{{#parentPage:PXV:IXC_Enumerations|IXC_ColorFlags Enumeration|enum}}
+
{{#parentPage:PXV:IXC_Enumerations|IXC_ColorFlags|enum}}
 
{{ToReview}}
 
{{ToReview}}
  

Latest revision as of 09:33, 23 May 2015


IXC_ColorFlags flags that specifie 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.