This method instructs CDTRasterizerV8 to render the current scene to the memory surface that was supplied to Init. Before rendering, the method automatically closes any previously opened contour.
The following table illustrates the pixel configuration currently supported by CDTRasterizerV8.
Format (bits-per-pixel) | Subformat |
Description |
8
| 0
|
gggggggg
8-bit grayscale surface (RGB averaging mode). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = (0.33333*R + 0.33333*G + 0.33333*B).
|
8
| 1
|
TTTTTTTT
8-bit alpha surface. Eight bits (1 byte) are used to represent transparency. 256 alpha values.
|
8
| 2
|
gggggggg
8-bit grayscale surface (RGB normalized mode). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = (0.21268*R + 0.7151*G + 0.07217*B).
|
8
| 3
|
gggggggg
8-bit grayscale surface (R channel). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = R.
|
8
| 4
|
gggggggg
8-bit grayscale surface (G channel). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = G.
|
8
| 5
|
gggggggg
8-bit grayscale surface (B channel). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = B.
|
8
| 10
|
gggggggg
8-bit grayscale surface (inverted RGB averaging mode). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = 255 - (0.33333*R + 0.33333*G + 0.33333*B).
|
8
| 12
|
gggggggg
8-bit grayscale surface (inverted RGB normalized mode). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = 255 - (0.21268*R + 0.7151*G + 0.07217*B).
|
8
| 13
|
gggggggg
8-bit grayscale surface (inverted R channel). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = 255 - R.
|
8
| 14
|
gggggggg
8-bit grayscale surface (inverted G channel). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = 255 - G.
|
8
| 15
|
gggggggg
8-bit grayscale surface (inverted B channel). Eight bits (1 byte) are used to represent the relative intensities of gray. 256 intensities calculated as g = 255 - B.
|
24
| 0
|
BBBBBBBB GGGGGGGG RRRRRRRR
Standard 24-bit RGB surface. Eight bits (1 byte) are used for each color component. 16,777,216 colors.
|
32
| 0
|
BBBBBBBB GGGGGGGG RRRRRRRR xxxxxxxx
32-bit RGB surface. Eight bits (1 byte) are used for each color component. The last byte is not used. 16,777,216 colors.
|
32
| 1
|
xxxxxxxx BBBBBBBB GGGGGGGG RRRRRRRR
32-bit RGB surface. Eight bits (1 byte) are used for each color component. The first byte is not used. 16,777,216 colors.
|
Legend:
g = bits used to describe gray
R = bits used to describe red, G = bits used to describe green, B = bits used to describe blue
T = bits used to describe transparency (0=fully opaque, 255=fully transparent)
x = unused bits
Note 1: RGB and alpha values are stored only for pixels that are actually rendered by D-Type. Your application must ensure that the surface is cleared with appropriate values before rendering.
|