#include <wx/rawbmp.h>
The iterator of class wxPixelData.
Public Member Functions | |
void | Reset (const PixelData &data) |
Reset the iterator to point to (0, 0). More... | |
Iterator (PixelData &data) | |
Initializes the iterator to point to the origin of the given pixel data. More... | |
Iterator (wxBitmap &bmp, PixelData &data) | |
Initializes the iterator to point to the origin of the given Bitmap. More... | |
Iterator () | |
Default constructor. More... | |
bool | IsOk () const |
Return true if this iterator is valid. More... | |
Iterator & | operator++ () |
Advance the iterator to the next pixel, prefix version. More... | |
Iterator | operator++ (int) |
Advance the iterator to the next pixel, postfix (hence less efficient – don't use it unless you absolutely must) version. More... | |
void | Offset (const PixelData &data, int x, int y) |
Move x pixels to the right and y down. More... | |
void | OffsetX (const PixelData &data, int x) |
Move x pixels to the right. More... | |
void | OffsetY (const PixelData &data, int y) |
Move y rows to the bottom. More... | |
void | MoveTo (const PixelData &data, int x, int y) |
Go to the given position. More... | |
ChannelType & | Red () |
Data Access: Access to individual colour components. More... | |
ChannelType & | Green () |
Data Access: Access to individual colour components. More... | |
ChannelType & | Blue () |
Data Access: Access to individual colour components. More... | |
ChannelType & | Alpha () |
Data Access: Access to individual colour components. More... | |
wxPixelData< Image, PixelFormat >::Iterator::Iterator | ( | PixelData & | data | ) |
Initializes the iterator to point to the origin of the given pixel data.
wxPixelData< Image, PixelFormat >::Iterator::Iterator | ( | wxBitmap & | bmp, |
PixelData & | data | ||
) |
Initializes the iterator to point to the origin of the given Bitmap.
wxPixelData< Image, PixelFormat >::Iterator::Iterator | ( | ) |
Default constructor.
ChannelType& wxPixelData< Image, PixelFormat >::Iterator::Alpha | ( | ) |
Data Access: Access to individual colour components.
ChannelType& wxPixelData< Image, PixelFormat >::Iterator::Blue | ( | ) |
Data Access: Access to individual colour components.
ChannelType& wxPixelData< Image, PixelFormat >::Iterator::Green | ( | ) |
Data Access: Access to individual colour components.
bool wxPixelData< Image, PixelFormat >::Iterator::IsOk | ( | ) | const |
Return true if this iterator is valid.
void wxPixelData< Image, PixelFormat >::Iterator::MoveTo | ( | const PixelData & | data, |
int | x, | ||
int | y | ||
) |
Go to the given position.
void wxPixelData< Image, PixelFormat >::Iterator::Offset | ( | const PixelData & | data, |
int | x, | ||
int | y | ||
) |
Move x pixels to the right and y down.
void wxPixelData< Image, PixelFormat >::Iterator::OffsetX | ( | const PixelData & | data, |
int | x | ||
) |
Move x pixels to the right.
void wxPixelData< Image, PixelFormat >::Iterator::OffsetY | ( | const PixelData & | data, |
int | y | ||
) |
Move y rows to the bottom.
Iterator& wxPixelData< Image, PixelFormat >::Iterator::operator++ | ( | ) |
Advance the iterator to the next pixel, prefix version.
Iterator wxPixelData< Image, PixelFormat >::Iterator::operator++ | ( | int | ) |
Advance the iterator to the next pixel, postfix (hence less efficient – don't use it unless you absolutely must) version.
ChannelType& wxPixelData< Image, PixelFormat >::Iterator::Red | ( | ) |
Data Access: Access to individual colour components.
void wxPixelData< Image, PixelFormat >::Iterator::Reset | ( | const PixelData & | data | ) |
Reset the iterator to point to (0, 0).