Device independent bitmap.
More...
#include <GdiObject.h>
|
| DibSection () |
|
| DibSection (int width, int height, int bpp, bool bottomup=true) |
|
| DibSection (HBITMAP bitmap, int bpp, bool bottomup) |
|
| DibSection (HBITMAP bitmap) |
|
bool | Attach (HBITMAP bitmap) |
|
void | Clear () |
|
bool | CopyCreate (HBITMAP bitmap, int bpp, bool bottomup) |
|
bool | CopyCreate (HBITMAP bitmap) |
|
bool | CopyFromBitmap (HBITMAP bitmap) |
|
bool | CopyToBitmap (HBITMAP bitmap) |
|
bool | Create (int width, int height, int bpp, bool bottomup=true) |
|
HBITMAP | Detach () |
|
int | FlippedY (int y) |
|
void * | GetBits () |
|
int | GetBPP () |
|
int | GetHeight () |
|
void * | GetPixelAddress (int x, int y) |
|
int | GetWidth () |
|
bool | IsBottomUp () |
|
DibSection & | operator= (const DibSection &other) |
|
| GdiObject (HBITMAPpHandle=0) |
|
| operator HBITMAP () |
|
void | SetHandle (HBITMAPpHandle) |
|
|
static int | BPP (HBITMAP bitmap) |
|
static void | FillBitmapInfo (BITMAPINFO &bmi, int w, int h, int bpp, bool bottomup=true) |
|
static bool | IsBottomUp (HBITMAP bitmap) |
|
static bool | IsDibSection (HBITMAP bitmap) |
|
Device independent bitmap.
neo::DibSection::DibSection |
( |
| ) |
|
|
inline |
neo::DibSection::DibSection |
( |
int |
width, |
|
|
int |
height, |
|
|
int |
bpp, |
|
|
bool |
bottomup = true |
|
) |
| |
|
inline |
Create with undefined colors
neo::DibSection::DibSection |
( |
HBITMAP |
bitmap, |
|
|
int |
bpp, |
|
|
bool |
bottomup |
|
) |
| |
|
inline |
Create copy from another bitmap
neo::DibSection::DibSection |
( |
HBITMAP |
bitmap | ) |
|
|
inline |
Create copy from another bitmap
bool neo::DibSection::Attach |
( |
HBITMAP |
bitmap | ) |
|
|
inline |
This will fail if the bitmap is not a dib
int neo::DibSection::BPP |
( |
HBITMAP |
bitmap | ) |
|
|
inlinestatic |
Get bits per pixel of a bitmap
void neo::DibSection::Clear |
( |
| ) |
|
|
inline |
bool neo::DibSection::CopyCreate |
( |
HBITMAP |
bitmap, |
|
|
int |
bpp, |
|
|
bool |
bottomup |
|
) |
| |
|
inline |
Create copy from another bitmap
bool neo::DibSection::CopyCreate |
( |
HBITMAP |
bitmap | ) |
|
|
inline |
bool neo::DibSection::CopyFromBitmap |
( |
HBITMAP |
bitmap | ) |
|
|
inline |
Copy color data from a bitmap
bool neo::DibSection::CopyToBitmap |
( |
HBITMAP |
bitmap | ) |
|
|
inline |
Copy color data to a bitmap
bool neo::DibSection::Create |
( |
int |
width, |
|
|
int |
height, |
|
|
int |
bpp, |
|
|
bool |
bottomup = true |
|
) |
| |
|
inline |
Create with undefined colors
HBITMAP neo::DibSection::Detach |
( |
| ) |
|
|
inline |
Release the handle from this instance
void neo::DibSection::FillBitmapInfo |
( |
BITMAPINFO & |
bmi, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
bpp, |
|
|
bool |
bottomup = true |
|
) |
| |
|
inlinestatic |
Create a valid BITMAPINFO
int neo::DibSection::FlippedY |
( |
int |
y | ) |
|
|
inline |
- Returns
- Inverts y if the dib is bottomup
void* neo::DibSection::GetBits |
( |
| ) |
|
|
inline |
- Returns
- Pointer to the beginning of the color data
int neo::DibSection::GetBPP |
( |
| ) |
|
|
inline |
int neo::DibSection::GetHeight |
( |
| ) |
|
|
inline |
void* neo::DibSection::GetPixelAddress |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
- Returns
- Pointer to a specific pixel in the color data
int neo::DibSection::GetWidth |
( |
| ) |
|
|
inline |
bool neo::DibSection::IsBottomUp |
( |
HBITMAP |
bitmap | ) |
|
|
inlinestatic |
Check if a dib is bottomup. This function is only relevant on dibs, normal bitmaps are always bottomup.
bool neo::DibSection::IsBottomUp |
( |
| ) |
|
|
inline |
- Returns
- If this dib was created bottomup or topdown
bool neo::DibSection::IsDibSection |
( |
HBITMAP |
bitmap | ) |
|
|
inlinestatic |
Check if the parameter is a normal bitmap or a dib
Create copy from another bitmap
BITMAP neo::DibSection::dibData |
BITMAPINFO neo::DibSection::dibInfo |
The documentation for this class was generated from the following file: