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. | |
|
|
Set wrapping mode to border. When a sample point is out-of-range, the passed color is returned. |
|
||||||||||||
|
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. |
|
|
Set wrapping mode to saturate. When a sample point is out-of-range, the nearest in-range edge is used for the color. |
|
|
Set the bitmap that will be sampled from. Wrap mode is wrap. |
|
|
Set wrapping mode to wrap. When a sample point is out-of-range, it wraps around to the other side of the bitmap. |
1.3.2