Mask reqding interface to single byte bitmap.
More...
#include <mask_bitmap_access.h>
Mask reqding interface to single byte bitmap.
Definition at line 288 of file mask_bitmap_access.h.
◆ SingleByteMaskReader()
Beatmup::SingleByteMaskReader::SingleByteMaskReader |
( |
const AbstractBitmap & |
bitmap, |
|
|
int |
x = 0 , |
|
|
int |
y = 0 |
|
) |
| |
|
inline |
Definition at line 359 of file mask_bitmap_access.h.
void goTo(int x, int y)
Changes current position.
jobject jlong jint jint y
Beatmup::InternalBitmap * bitmap
◆ getValue() [1/3]
unsigned char Beatmup::SingleByteMaskReader::getValue |
( |
| ) |
const |
|
inline |
Returns 0..MAX_UNNORM_VALUE value at current position.
Definition at line 293 of file mask_bitmap_access.h.
unsigned char * ptr
pointer to current pixel
◆ getValue() [2/3]
unsigned char Beatmup::SingleByteMaskReader::getValue |
( |
int |
i | ) |
const |
|
inline |
Returns 0..MAX_UNNORM_VALUE value at position shifted by i pixels in scanline order with respect to the current position.
Definition at line 301 of file mask_bitmap_access.h.
◆ getValue() [3/3]
unsigned char Beatmup::SingleByteMaskReader::getValue |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
|
inline |
Returns 0..MAX_UNNORM_VALUE value at (x,y) position.
Definition at line 308 of file mask_bitmap_access.h.
unsigned char * data
all bitmap data
◆ operator()() [1/2]
pixint1 Beatmup::SingleByteMaskReader::operator() |
( |
| ) |
const |
|
inline |
Returns 0..255 value at current position.
Definition at line 315 of file mask_bitmap_access.h.
unsigned char getValue() const
Returns 0..MAX_UNNORM_VALUE value at current position.
◆ operator()() [2/2]
pixint1 Beatmup::SingleByteMaskReader::operator() |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
|
inline |
◆ operator[]()
const pixint1 Beatmup::SingleByteMaskReader::operator[] |
( |
int |
i | ) |
const |
|
inline |
Returns 0..255 value at position shifted by i pixels in scanline order with respect to the current position.
Definition at line 329 of file mask_bitmap_access.h.
◆ operator++()
void Beatmup::SingleByteMaskReader::operator++ |
( |
int |
| ) |
|
|
inline |
◆ operator+=()
void Beatmup::SingleByteMaskReader::operator+= |
( |
const int |
N | ) |
|
|
inline |
◆ goTo()
void Beatmup::SingleByteMaskReader::goTo |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
Changes current position.
Definition at line 351 of file mask_bitmap_access.h.
354 "Coordinates outside of image: %d %d (width=%d, height=%d)",
x,
y,
width,
height);
int height
bitmap size in pixels
The documentation for this class was generated from the following file: