ChartDirector 7.1 (C++ Edition)

DrawArea.setResource2


Usage

void setResource(const char *id, DrawArea *img);

Description

Assigns a resource ID to a DrawArea object to allow it to be referenced using a resource path.

This method is the same DrawArea.setResource, except that it assigns the resource ID to a DrawArea object instead of a memory image. This allows the DrawArea object to be reference as an image resource using "@/res_id".

Arguments

ArgumentDefaultDescription
id(Mandatory)The resource ID to be used to reference the DrawArea object.
img(Mandatory)The DrawArea object to be used as a resource.

Return Value

None