IXC_SwapChannels Enumeration

From PDF XChange PDF SDK
Jump to: navigation, search
(Automatic page editing by robot)
 
m (Automatic page editing by robot)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IXC_SwapChannels Enumeration}}
 
{{#customTitle:IXC_SwapChannels Enumeration}}
 +
{{#parentPage:PXV:IXC_Enumerations|IXC_SwapChannels|enum}}
 +
{{ToWrite}}
 +
{{ToReview}}
  
Specifies the ...
+
Specifies the direction of color channel swapping.
  
 
== Syntax ==
 
== Syntax ==
 
<pre class="brush:cpp;gutter:false">enum IXC_SwapChannels
 
<pre class="brush:cpp;gutter:false">enum IXC_SwapChannels
 
{
 
{
     SwapChannels_RGB2RGB = 0;
+
     SwapChannels_RGB2RGB = 0,
     SwapChannels_RGB2RBG = 1;
+
     SwapChannels_RGB2RBG = 1,
     SwapChannels_RGB2BGR = 2;
+
     SwapChannels_RGB2BGR = 2,
     SwapChannels_RGB2BRG = 3;
+
     SwapChannels_RGB2BRG = 3,
     SwapChannels_RGB2GRB = 4;
+
     SwapChannels_RGB2GRB = 4,
     SwapChannels_RGB2GBR = 5;
+
     SwapChannels_RGB2GBR = 5,
 
};
 
};
 
</pre>
 
</pre>
Line 18: Line 22:
 
== Constants ==
 
== Constants ==
 
;SwapChannels_RGB2RGB
 
;SwapChannels_RGB2RGB
:The ...
+
:This is a dummy operation, because '''R'''ed channel will be swapped with '''R'''ed channel, '''B''' -> '''B''', '''G''' -> '''G'''.
 
;SwapChannels_RGB2RBG
 
;SwapChannels_RGB2RBG
:The ...
+
:'''G'''reen and '''B'''lue channels will be exchanged: '''G''' <-> '''B'''.
 
;SwapChannels_RGB2BGR
 
;SwapChannels_RGB2BGR
:The ...
+
:'''B'''lue and '''R'''ed channels will be exchanged: '''B''' <-> '''R'''.
 
;SwapChannels_RGB2BRG
 
;SwapChannels_RGB2BRG
:The ...
+
:The following operation will performed: '''B''' -> '''R'''; '''R''' -> '''G'''; '''G''' -> '''B'''.
 
;SwapChannels_RGB2GRB
 
;SwapChannels_RGB2GRB
:The ...
+
:'''R'''ed and '''G'''reen channels will be exchanged: '''R''' <-> '''G'''.
 
;SwapChannels_RGB2GBR
 
;SwapChannels_RGB2GBR
:The ...
+
:The following operation will performed: '''G''' -> '''R'''; '''B''' -> '''G'''; '''G''' -> '''R'''.
  
 
== See Also ==
 
== See Also ==
See also ...
+
[[PXV:IIXC_Page_SwapColors|IIXC_Page::SwapColors]]

Latest revision as of 00:39, 12 August 2015


Specifies the direction of color channel swapping.

Syntax

enum IXC_SwapChannels
{
    SwapChannels_RGB2RGB = 0,
    SwapChannels_RGB2RBG = 1,
    SwapChannels_RGB2BGR = 2,
    SwapChannels_RGB2BRG = 3,
    SwapChannels_RGB2GRB = 4,
    SwapChannels_RGB2GBR = 5,
};

Constants

SwapChannels_RGB2RGB
This is a dummy operation, because Red channel will be swapped with Red channel, B -> B, G -> G.
SwapChannels_RGB2RBG
Green and Blue channels will be exchanged: G <-> B.
SwapChannels_RGB2BGR
Blue and Red channels will be exchanged: B <-> R.
SwapChannels_RGB2BRG
The following operation will performed: B -> R; R -> G; G -> B.
SwapChannels_RGB2GRB
Red and Green channels will be exchanged: R <-> G.
SwapChannels_RGB2GBR
The following operation will performed: G -> R; B -> G; G -> R.

See Also

IIXC_Page::SwapColors