Applying Texture Fill (All Graph Types)

How to:

You can apply a texture pattern to any object or text in a graph.


Top of page

x
Procedure: How to Apply Texture Fill
  1. From the Graph Editor, select Apply Texture Fill to apply a texture to an area object in a chart. The dialog box appears as follows:

    Apply Texture Fill options

  2. Select a texture fill pattern.
  3. Select an object in the chart.
  4. Select the Apply Texture Fill button to apply the texture to the object in the graph. Textures can be applied to any object in the chart (including text objects).

Top of page

x
Syntax: How to Add Properties and Methods for Applying Texture Fill

The selections in the associated dialog box add the following methods to the code that defines this chart:

setFillType (getSeries (#), 3 );
setTextureDisplayMode(getSeries(#),0);
setTextureURL( getSeries(#), "file:/drive:/directory/FileName.GIF");
setTextureDisplayMode(getSeries(#),0);
setTextureURL( getSeries(#), "file:/drive:/directory/FileName.GIF");


Example: Applying Methods for Texture Fill

The following methods assign the Hard_Rock_Green.GIF texture file to series one in the chart:

setFillType (getSeries (1), 3 );
setTextureDisplayMode(getSeries(1),0);
setTextureURL(getSeries(1),"file:/C:/3dg/Editor/tiles/
Hard_Rock_Green.GIF");

WebFOCUS