|
Namespace hierarchy Classes| Class | Description |
|---|
| ColorTransform |
The ColorTransform class defines color transformation that applies to the graphic object. There are two types of transform possible: - Multiplication Transforms
- Addition Transforms
Multiplication transforms multiply the red, green, blue and alpha components by an 8.8 fixedpoint value. The fixed-point representation of 1.0 is 0x100 or 256 decimal. Therefore, the result of a multiplication operation should be divided by 256. For any color (R,G,B,A) the transformed color (R1, G1, B1, A1) is calculated as follows: The ColorTransform class is most commonly used to display objects as partially transparent. This is achieved by multiplying the alpha channel by some value between zero and 256. Addition transforms simply add a fixed value (positive or negative) to the red, green, blue and alpha components of the object being displayed. If the result is greater than 255, the result is clamped to 255. If the result is less than zero, the result is clamped to zero. | | MatrixTransform | MatrixTransform is used to specify two-dimensional coordinate transforms, allowing an object to be scaled, rotated or moved without changing the original definition of how the object is drawn. | | Rect | Represents rectangular region described by the top left corner and the bottom right corner coordinates. | | RGB | The RGB class represents an RGB as a 24-bit red, green, blue value and alpha. |
|