ChartDirector Ver 3.0 (Perl Edition)
DrawArea.patternColor2
Usage
patternColor2(filename[, startX, startY])
Description
Create a pattern color by loading the pattern from an image file.
A pattern color is a dynamic color that changes according to a 2D periodic pattern. When it is used to fill an area, the area will look like being tiled with a wallpaper pattern.
This method automatically detects the image file format using the file extension, which must be png, jpg, jpeg, gif, wbmp or wmp.
Arguments
Argument | Default | Description |
filename | (Mandatory) | An image file providing the pattern. |
startX | 0 | The x cooridinate of a reference point to align with the top-left corner the pattern. |
startY | 0 | The y cooridinate of a reference point to align with the top-left corner the pattern. |
Return Value
Return a 32-bit integer acting as a handle to the pattern color. The handle can be used in any ChartDirector API that expects a color as an argument.
© 2003 Advanced Software Engineering Limited. All rights reserved.