| Home
| Previous
| Next
| Up

Use8x8TransColorPattern

Selects one of the 8x8 color patterns for subsequent rendering operations.

Declaration

void NAPI GA_2DStateFuncs::Use8x8TransColorPattern(
N_int32 index,
GA_color transparent)

Prototype In

snap/graphics.h

Parameters

index | Index of the 8x8 color pattern to make active
transparent | Transparent color for the pattern fill

Description

This function selects one of the 8, 8x8 color patterns to be used for all subsequent color pattern filled functions. This verison is similar to the regular Use8x8ColorPattern function, however it enables transparency for the color pattern. Where a pixel in the pattern is equal to the transparent color, the destination pixel will remain untouched, otherwise the destination pixel will take on the color of the pixel in the bitmap pattern.

Note: Some hardware may not support transparent color pattern fills, in which case this function will be a NULL pointer.

See Also

Set8x8MonoPattern, Use8x8MonoPattern, Set8x8ColorPattern, GA_2DRenderFuncs::DrawColorPattScan, DrawColorPattScanList, DrawColorPattRect, DrawColorPattTrap

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com