Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

BrushBitmap Class Reference

Inherits Brush.

List of all members.


Detailed Description

A brush that returns samples from a bitmap from its evaluator.


Public Member Functions

 this (Bitmap bitmap)
 Set the bitmap that will be sampled from.

void center (float x, float y)
 Set the center subtracted from the sample point.

Color eval (float x, float y)
 Evaluate the bitmap at that point.

Color evalNearest (float x, float y)
 Evaluate using no interpolation.

Color evalBilinear (float x, float y)
 Evaluate using bilinear interpolation.

void wrap ()
 Set wrapping mode to wrap.

void saturate ()
 Set wrapping mode to saturate.

void border (Color color)
 Set wrapping mode to border.


Member Function Documentation

void BrushBitmap.border Color  color  ) 
 

Set wrapping mode to border.

When a sample point is out-of-range, the passed color is returned.

Color BrushBitmap.eval float  x,
float  y
 

Evaluate the bitmap at that point.

First it divides by scale and subtracts the center. Then it applies the contortion; then it wraps and returns the color sampled at that point.

Reimplemented from Brush.

void BrushBitmap.saturate  ) 
 

Set wrapping mode to saturate.

When a sample point is out-of-range, the nearest in-range edge is used for the color.

BrushBitmap.this Bitmap  bitmap  ) 
 

Set the bitmap that will be sampled from.

Wrap mode is wrap.

void BrushBitmap.wrap  ) 
 

Set wrapping mode to wrap.

When a sample point is out-of-range, it wraps around to the other side of the bitmap.


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 13:12:51 2003 for dig by doxygen 1.3.2