ChartDirector 7.1 (C++ Edition)

DrawArea.clone


Usage

void clone(DrawArea *d, int x, int y, int align, int newWidth = -1, int newHeight = -1, int filter = LinearFilter, double blur = 1) const;

Description

Copy the current DrawArea object to another DrawArea object, with optional resizing.

Arguments

ArgumentDefaultDescription
d(Mandatory)The destination DrawArea object where the current DrawArea is copied to.
x(Mandatory)The x coordinate of a reference point in the destination DrawArea object.
y(Mandatory)The y coordinate of a reference point in the destination DrawArea object.
align(Mandatory)The alignment of the current DrawArea relative to the reference point. See Alignment Specification for supported alignment types.
newWidth-1The new width to which the current DrawArea will be resized to before copying. -1 means no resizing.
newHeight-1The new height to which the current DrawArea will be resized to before copying. -1 means no resizing.
filterLinearFilterThe filter to use for re-sampling. (Only applies if there is resizing.)
blur1The blur factor to use for re-sampling. (Only applies if there is resizing.)

Return Value

None