ASPiK SDK
VSTGUI::CBitmapPixelAccess Class Referenceabstract

direct pixel access to a CBitmap More...

#include <cbitmap.h>

Inheritance diagram for VSTGUI::CBitmapPixelAccess:
VSTGUI::ReferenceCounted< T > VSTGUI::IReference

Public Member Functions

bool operator++ ()
 advance 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
 
void getValue (uint32_t &value)
 get native color value
 
void setValue (uint32_t value)
 set native color value
 
uint32_t getBitmapWidth () const
 
uint32_t getBitmapHeight () const
 
IPlatformBitmapPixelAccess * getPlatformBitmapPixelAccess () const
 
- Public Member Functions inherited from VSTGUI::ReferenceCounted< T >
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
void forget () override
 decrease refcount and delete object if refcount == 0
 
void remember () override
 increase refcount
 
virtual int32_t getNbReference () const
 get refcount
 
virtual void beforeDelete ()
 

Static Public Member Functions

static CBitmapPixelAccesscreate (CBitmap *bitmap, bool alphaPremultiplied=true)
 

Protected Member Functions

void init (CBitmap *bitmap, IPlatformBitmapPixelAccess *pixelAccess)
 

Protected Attributes

CBitmapbitmap
 
SharedPointer< IPlatformBitmapPixelAccess > pixelAccess
 
uint8_t * currentPos
 
uint8_t * address
 
uint32_t bytesPerRow
 
uint32_t maxX
 
uint32_t maxY
 
uint32_t x
 
uint32_t y
 

Detailed Description

direct pixel access to a CBitmap

Member Function Documentation

◆ create()

CBitmapPixelAccess * VSTGUI::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


The documentation for this class was generated from the following files: