VSTGUI 4.5 Graphical User Interface Framework not only for VST plugins

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CBitmapPixelAccess Class Referenceabstract
Version 4.0

direct pixel access to a CBitmap More...

Inheritance diagram for CBitmapPixelAccess:

## Public Member Functions
bool | operator++ ()
| advance position More...
bool | setPosition (uint32_t x, uint32_t y)
| set current position More...
uint32_t | getX () const
| return current x position More...
uint32_t | getY () const
| return current y position More...
virtual void | getColor (CColor &c) const =0
| get color of current pixel More...
virtual void | setColor (const CColor &c)=0
| set color of current pixel More...
void | getValue (uint32_t &value)
| get native color value More...
void | setValue (uint32_t value)
| set native color value More...
uint32_t | getBitmapWidth () const
uint32_t | getBitmapHeight () const
IPlatformBitmapPixelAccess * | getPlatformBitmapPixelAccess () const
Public Member Functions inherited from ReferenceCounted< T >
| ReferenceCounted ()=default
virtual | ~ReferenceCounted () noexcept=default
| ReferenceCounted (const ReferenceCounted &)
ReferenceCounted & | operator= (const ReferenceCounted &)
void | forget () override
| decrease refcount and delete object if refcount == 0 More...
void | remember () override
| increase refcount More...
virtual int32_t | getNbReference () const
| get refcount More...
virtual void | beforeDelete ()

## Static Public Member Functions
static CBitmapPixelAccess * | create (CBitmap *bitmap, bool alphaPremultiplied=true)
| create an accessor. More...

## Protected Member Functions
| CBitmapPixelAccess ()
| ~CBitmapPixelAccess () noexceptoverride=default
void | init (CBitmap *bitmap, IPlatformBitmapPixelAccess *pixelAccess)

## Protected Attributes
CBitmap * | bitmap
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

## Constructor & Destructor Documentation

CBitmapPixelAccess | ( |  | ) |
| protected

~CBitmapPixelAccess | ( |  | ) |
| override protected default noexcept

## Member Function Documentation

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

uint32_t getBitmapHeight | ( |  | ) | const
| inline

uint32_t getBitmapWidth | ( |  | ) | const
| inline

virtual void getColor | ( | CColor & | c | ) | const
| pure virtual

get color of current pixel

IPlatformBitmapPixelAccess* getPlatformBitmapPixelAccess | ( |  | ) | const
| inline

void getValue | ( | uint32_t & | value | ) |
| inline

get native color value

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

bool operator++ | ( |  | ) |
| inline

advance position

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

void setValue | ( | uint32_t | value | ) |
| inline

set native color value

## Member Data Documentation

uint8_t* address
| protected

CBitmap* bitmap
| protected

uint32_t bytesPerRow
| protected

uint8_t* currentPos
| protected

uint32_t maxX
| protected

uint32_t maxY
| protected

SharedPointer<IPlatformBitmapPixelAccess> pixelAccess
| protected

uint32_t x
| protected

uint32_t y
| protected

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

- cbitmap.h
- cbitmap.cpp