IXC_ColorFlags Enumeration

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
 
(3 intermediate revisions by 2 users not shown)
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}}
  
'''IXC_ColorFlags''' flags which specifies how the data will be copied
+
'''IXC_ColorFlags''' flags that specifie how the data will be copied.
  
 
== Syntax ==
 
== Syntax ==
Line 28: Line 29:
 
;Color_UseAlpha
 
;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.
 
: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 ==
 
:[[PXV:IIXC_Page_Place|IIXC_Page::Place]]
 
:[[PXV:IIXC_Page_AlphaPlace|IIXC_Page::AlphaPlace]]
 
:[[PXV:IIXC_Page_Tile|IIXC_Page::Tile]]
 
:[[PXV:IIXC_Page_AlphaTile|IIXC_Page::AlphaTile]]
 
:[[PXV:IIXC_Page_Deskew|IIXC_Page::Deskew]]
 
:[[PXV:IIXC_Page_FreeRotate|IIXC_Page::FreeRotate]]
 
:[[PXV:IIXC_Page_Fill|IIXC_Page::Fill]]
 
:[[PXV:IIXC_Page_SetPixel|IIXC_Page::SetPixel]]
 
:[[PXV:IIXC_Page_ReplaceColor|IIXC_Page::ReplaceColor]]
 
:[[PXV:IIXC_Page_Shear|IIXC_Page:Shear]]
 

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.