ChartDirector 7.1 (.NET Edition)

BaseChart.patternColor2


Usage

[C#]public int patternColor2(string filename [, int startX, int startY ]);
[VB]Public Function patternColor2(filename As String [, startX As Integer, startY As Integer ]) As Integer

Description

Creates a pattern color by using the image from the specified file or resource as the pattern.

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.

Arguments

ArgumentDefaultDescription
filename(Mandatory)The pathname of the image file or resource, which must be of PNG, JPG or GIF format. Please refer to Path Specification on how ChartDirector interprets pathnames.
startX0The x coordinate of a reference point to align with the top-left corner the pattern.
startY0The y coordinate of a reference point to align with the top-left corner the pattern.

Return Value

A 32-bit integer representing the pattern color.