direct pixel access to a CBitmap More...
Public Member Functions | |
| bool | operator++ () |
| advance position | |
| bool | operator++ (int) |
| advance position | |
| bool | operator-- () |
| decrease position | |
| bool | operator-- (int) |
| decrease position | |
| bool | setPosition (uint32_t x, uint32_t y) |
| set current position | |
| uint32_t | getX () const |
| return current x position | |
| uint32_t | getY () const |
| return current y position | |
| virtual void | getColor (CColor &c) const =0 |
| get color of current pixel | |
| virtual void | setColor (const CColor &c)=0 |
| set color of current pixel | |
| uint32_t | getBitmapWidth () const |
| uint32_t | getBitmapHeight () const |
| IPlatformBitmapPixelAccess * | getPlatformBitmapPixelAccess () const |
Reference Counting Methods | |
| virtual void | forget () |
| decrease refcount and delete object if refcount == 0 | |
| virtual void | remember () |
| increase refcount | |
| virtual int32_t | getNbReference () const |
| get refcount | |
Message Methods | |
| virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
Static Public Member Functions | |
| static CBitmapPixelAccess * | create (CBitmap *bitmap, bool alphaPremultiplied=true) |
Protected Member Functions | |
| CBitmapPixelAccess () | |
| ~CBitmapPixelAccess () | |
| void | init (CBitmap *bitmap, IPlatformBitmapPixelAccess *pixelAccess) |
Protected Attributes | |
| CBitmap * | bitmap |
| IPlatformBitmapPixelAccess * | pixelAccess |
| uint8_t * | currentPos |
| uint8_t * | address |
| uint32_t | bytesPerRow |
| uint32_t | maxX |
| uint32_t | maxY |
| uint32_t | x |
| uint32_t | y |
direct pixel access to a CBitmap
| CBitmapPixelAccess | ( | ) | [protected] |
| ~CBitmapPixelAccess | ( | ) | [protected] |
| CBitmapPixelAccess * create | ( | CBitmap * | bitmap, | |
| bool | alphaPremultiplied = true | |||
| ) | [static] |
create an accessor. can return 0 if platform implementation does not support this. result needs to be forgotten before the CBitmap reflects the change to the pixels
| virtual void forget | ( | ) | [inline, virtual, inherited] |
decrease refcount and delete object if refcount == 0
| uint32_t getBitmapHeight | ( | ) | const [inline] |
| uint32_t getBitmapWidth | ( | ) | const [inline] |
| virtual void getColor | ( | CColor & | c | ) | const [pure virtual] |
get color of current pixel
| virtual int32_t getNbReference | ( | ) | const [inline, virtual, inherited] |
get refcount
| IPlatformBitmapPixelAccess* getPlatformBitmapPixelAccess | ( | ) | const [inline] |
| uint32_t getX | ( | ) | const [inline] |
return current x position
| uint32_t getY | ( | ) | const [inline] |
return current y position
| void init | ( | CBitmap * | bitmap, | |
| IPlatformBitmapPixelAccess * | pixelAccess | |||
| ) | [protected] |
| virtual CMessageResult notify | ( | CBaseObject * | sender, | |
| IdStringPtr | message | |||
| ) | [inline, virtual, inherited] |
| bool operator++ | ( | int | ) | [inline] |
advance position
| bool operator++ | ( | ) | [inline] |
advance position
| bool operator-- | ( | int | ) | [inline] |
decrease position
| bool operator-- | ( | ) | [inline] |
decrease position
| virtual void remember | ( | ) | [inline, virtual, inherited] |
increase refcount
| virtual void setColor | ( | const CColor & | c | ) | [pure virtual] |
set color of current pixel
| bool setPosition | ( | uint32_t | x, | |
| uint32_t | y | |||
| ) | [inline] |
set current position
uint8_t* address [protected] |
uint32_t bytesPerRow [protected] |
uint8_t* currentPos [protected] |
uint32_t maxX [protected] |
uint32_t maxY [protected] |
IPlatformBitmapPixelAccess* pixelAccess [protected] |
uint32_t x [protected] |
uint32_t y [protected] |
1.6.1