Color Expansion - Samsung S3C2416 User Manual

16/32-bit risc
Table of Contents

Advertisement

2D
S3C2416X RISC MICROPROCESSOR
4.1.9 Color Expansion (Font Drawing)
Color Expansion expands the monochrome color to either background (BG_COLOR) or foreground (FG_COLOR)
color. Each bit of the source data presents a pixel, with '1' indicating the foreground color and '0' the background
color. The bit sequence is from MSB to LSB. The MSB of the first data corresponds to the leftmost topmost pixel
of the destination image. Figure 18-6 serves as a good illustration of the function and data type of Color
Expansion. In this example, the foreground color is blue and background white, and the destination image is 16-
pixel wide.
Figure 18-6. Color Expansion
2D can render Color Expansion image in Transparent Mode. In this mode, the pixels with background color (the
corresponding bits are '0's) are discarded, resulting in a transparent effect. The transparent effect on Color
Expansion is illustrated in Figure 18-7, in which the lower three lines are drawn with Transparent Mode enabled
while the upper three disabled. Note that the background color is set to white and the foreground black.
Figure 18-7. Font Drawing with Transparent Mode
2D supports both host-to-screen mode and memory-to-screen mode of Color Expansion.
18-8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents