Public Member Functions | |
PtBitmapStack (int stackSize) | |
void | Clear () |
void | Push (Bitmap bmp) |
Bitmap | GetPrevious () |
bool | PrevPossible () |
Bitmap | GetNext () |
bool | NextPossible () |
Bitmap | Pop () |
bool | GetBitmapAtIndex (int id, out Bitmap bmp) |
int | GetMaxStackIndex () |
int | GetCurrentIndex () |
int | GetAddCount () |
Properties | |
bool | IsEmpty [get] |
Powertek.Imaging.PtBitmapStack.PtBitmapStack | ( | int | stackSize | ) |
Init the stack.
stackSize | Max number of Bitmaps in the stack |
void Powertek.Imaging.PtBitmapStack.Clear | ( | ) |
Clear the stack.
int Powertek.Imaging.PtBitmapStack.GetAddCount | ( | ) |
Get the number of added bitmaps.
bool Powertek.Imaging.PtBitmapStack.GetBitmapAtIndex | ( | int | id, | |
out Bitmap | bmp | |||
) |
Returns the bitmap at the given stack index.
id | Stack index | |
bmp | The Bitmap at the stack index |
int Powertek.Imaging.PtBitmapStack.GetCurrentIndex | ( | ) |
Get the current internal stack index.
int Powertek.Imaging.PtBitmapStack.GetMaxStackIndex | ( | ) |
Get the current internal maximum stack index (not equal with bitmap count).
Bitmap Powertek.Imaging.PtBitmapStack.GetNext | ( | ) |
Set the stackpointer one element up and return the bitmap at this position (if there is one).
Bitmap Powertek.Imaging.PtBitmapStack.GetPrevious | ( | ) |
This will set the stackpointer one element down and return the bitmap at this position (if there is one) This will return null, if no bitmap is available.
bool Powertek.Imaging.PtBitmapStack.NextPossible | ( | ) |
Check, if there is a valid next bitmap.
Bitmap Powertek.Imaging.PtBitmapStack.Pop | ( | ) |
get an bitmap from stack, but only decrement the index, no bitmap will be removed
bool Powertek.Imaging.PtBitmapStack.PrevPossible | ( | ) |
Check, if there is a valid previous bitmap.
void Powertek.Imaging.PtBitmapStack.Push | ( | Bitmap | bmp | ) |
Push a bitmap on to the current stackindex (overwrite existing).
bmp |
bool Powertek.Imaging.PtBitmapStack.IsEmpty [get] |
Check if there is a bitmap in the stack.