ChartDirector 7.1 (C++ Edition)

SurfaceChart.setSurfaceTexture


Usage

void setSurfaceTexture(int patternColor);

Description

Adds a texture image to the surface.

A texture is a 2D image pattern for mapping onto a 3D surface. The pattern can be defined by using BaseChart.patternColor or BaseChart.patternColor2.

One common usage of this method is to apply an image the same size as the plot region xy plane to the surface. To do this, simply use an image with width and height equals to the plot region width and depth.

Arguments

ArgumentDefaultDescription
patternColor(Mandatory)A color (normally a pattern color) that contains the texture image to be applied to the surface.

Return Value

None