This reference page is linked to from the following overview topics: Principal Bitmap Classes, Resolution / Palettes / Pixel Storage Topics, Aspect Ratio, Gamma Preferences, Writing Image IO Plug-ins.
#include <bitmap.h>

Public Member Functions |
|
| BMMExport | BitmapStorage () |
| virtual BMMExport | ~BitmapStorage () |
| BMMExport float | SetGamma (float gam) |
| int | HasGamma () |
| BMMExport void | SetHasGamma (BOOL onOff) |
| void | UpdateGammaTable () |
| BMMExport UWORD * | GetInputGammaTable () |
| BitmapManager * | Manager () |
| int | OpenMode () |
| int | Width () |
| int | Height () |
| float | Aspect () |
| float | Gamma () |
| int | Paletted () |
| int | IsDithered () |
| int | PreMultipliedAlpha () |
| int | HasAlpha () |
| void | UseScaleColors (int on) |
| int | ScaleColors () |
| void | ClampScaleColor (BMM_Color_64 &out, const BMM_Color_fl &in) |
| void | ClampScaleColorA (BMM_Color_64 &out, const BMM_Color_fl &in) |
| int | UsageCount () |
| int | Type () |
| int | Flags () |
| void | SetFlags (DWORD f) |
| void | ClearFlags (DWORD f) |
| Clears the given flags. |
|
| virtual BMMExport int | MaxRGBLevel ()=0 |
| virtual BMMExport int | MaxAlphaLevel ()=0 |
| virtual BMMExport int | IsHighDynamicRange ()=0 |
| virtual BMMExport void * | GetStoragePtr (int *type) |
| virtual BMMExport void * | GetAlphaPtr (int *type) |
| virtual BMMExport void | Scale (WORD *, int, WORD *, int) |
| virtual BMMExport void | Scale (float *, int, float *, int) |
| virtual BMMExport BOOL | GetSRow (WORD *, int, WORD *, int) |
| virtual BMMExport BOOL | GetSRow (float *, int, float *, int) |
| virtual BMMExport BOOL | PutSRow (WORD *, int, WORD *, int) |
| virtual BMMExport BOOL | PutSRow (float *, int, float *, int) |
| virtual BMMExport BOOL | GetSCol (WORD *, WORD *, int, int) |
| virtual BMMExport BOOL | GetSCol (float *, float *, int, int) |
| virtual BMMExport BOOL | PutSCol (WORD *, WORD *, int, int) |
| virtual BMMExport BOOL | PutSCol (float *, float *, int, int) |
| virtual BMMExport BOOL | ScaleY (Bitmap *, BMM_Color_64 *, WORD *, WORD *, HWND, int cw=0, int ch=0) |
| virtual BMMExport BOOL | ScaleY (Bitmap *, BMM_Color_fl *, float *, float *, HWND, int cw=0, int ch=0) |
| virtual BMMExport BOOL | ScaleX (Bitmap *, BMM_Color_64 *, WORD *, WORD *, HWND, int cw=0, int ch=0) |
| virtual BMMExport BOOL | ScaleX (Bitmap *, BMM_Color_fl *, float *, float *, HWND, int cw=0, int ch=0) |
| virtual BMMExport int | StraightCopy (Bitmap *from)=0 |
| virtual BMMExport int | Get16Gray (int x, int y, int pixels, WORD *ptr)=0 |
| virtual BMMExport int | Put16Gray (int x, int y, int pixels, WORD *ptr)=0 |
| virtual BMMExport int | Get16Gray (int x, int y, int pixels, float *ptr)=0 |
| virtual BMMExport int | Put16Gray (int x, int y, int pixels, float *ptr)=0 |
| virtual BMMExport int | GetLinearPixels (int x, int y, int pixels, BMM_Color_64 *ptr)=0 |
| virtual BMMExport int | GetPixels (int x, int y, int pixels, BMM_Color_64 *ptr)=0 |
| virtual BMMExport int | PutPixels (int x, int y, int pixels, BMM_Color_64 *ptr)=0 |
| virtual BMMExport int | GetLinearPixels (int x, int y, int pixels, BMM_Color_fl *ptr)=0 |
| virtual BMMExport int | GetPixels (int x, int y, int pixels, BMM_Color_fl *ptr)=0 |
| virtual BMMExport int | PutPixels (int x, int y, int pixels, BMM_Color_fl *ptr)=0 |
| virtual BMMExport int | GetIndexPixels (int x, int y, int pixels, unsigned char *ptr)=0 |
| virtual BMMExport int | PutIndexPixels (int x, int y, int pixels, unsigned char *ptr)=0 |
| virtual BMMExport int | Fill (const BMM_Color_fl &fillColor) |
| virtual BMMExport int | Fill (const BMM_Color_64 &fillColor) |
| virtual BMMExport int | CropImage (int width, int height, BMM_Color_64 fillcolor)=0 |
| virtual BMMExport int | CropImage (int width, int height, BMM_Color_fl fillcolor)=0 |
| virtual BMMExport int | CropImage (int width, int height, int fillindex)=0 |
| virtual BMMExport int | ResizeImage (int width, int height, int newpalette)=0 |
| virtual BMMExport int | CopyCrop (Bitmap *from, BMM_Color_64 fillcolor)=0 |
| virtual BMMExport int | CopyCrop (Bitmap *from, BMM_Color_fl fillcolor)=0 |
| virtual BMMExport int | CopyScaleLow (Bitmap *from)=0 |
| virtual BMMExport int | CopyScaleHigh (Bitmap *from, HWND hWnd, BMM_Color_64 **buf=NULL, int w=0, int h=0)=0 |
| virtual BMMExport int | CopyScaleHigh (Bitmap *from, HWND hWnd, BMM_Color_fl **buf=NULL, int w=0, int h=0)=0 |
| virtual BMMExport int | CopyImage (Bitmap *from, int operation, BMM_Color_64 fillcolor, BitmapInfo *bi=NULL)=0 |
| virtual BMMExport int | CopyImage (Bitmap *from, int operation, BMM_Color_fl fillcolor, BitmapInfo *bi=NULL)=0 |
| virtual BMMExport int | CopyImage (Bitmap *from, int operation, int fillindex)=0 |
| virtual BMMExport int | GetPalette (int start, int count, BMM_Color_48 *ptr)=0 |
| virtual BMMExport int | SetPalette (int start, int count, BMM_Color_48 *ptr)=0 |
| virtual BMMExport int | GetFiltered (float u, float v, float du, float dv, BMM_Color_64 *ptr)=0 |
| virtual BMMExport int | GetFiltered (float u, float v, float du, float dv, BMM_Color_fl *ptr)=0 |
| virtual BMMExport int | Allocate (BitmapInfo *bi, BitmapManager *manager, int openMode)=0 |
| virtual BMMExport int | Connect ()=0 |
| virtual BMMExport int | Disconnect ()=0 |
| virtual BMMExport int | MapReady ()=0 |
| virtual BMMExport int | ClosestColor (BMM_Color_48 color) |
| virtual BMMExport int | ClosestColor (int r, int g, int b) |
| virtual BMMExport void * | GetChannel (ULONG channelID, ULONG &chanType) |
| GBuffer * | GetGBuffer () |
| virtual BMMExport ULONG | CreateChannels (ULONG channelIDs) |
| virtual BMMExport void | DeleteChannels (ULONG channelIDs) |
| virtual BMMExport ULONG | ChannelsPresent () |
| BMMExport RenderInfo * | AllocRenderInfo () |
| BMMExport RenderInfo * | GetRenderInfo () |
Static Public Member Functions |
|
| static void | ClampColor (BMM_Color_64 &out, const BMM_Color_fl &in) |
| static void | ClampColorA (BMM_Color_64 &out, const BMM_Color_fl &in) |
| static BMMExport void | ScaleColor (BMM_Color_64 &out, BMM_Color_fl in) |
| static void | ScaleColorA (BMM_Color_64 &out, const BMM_Color_fl &in) |
Public Attributes |
|
| BitmapInfo | bi |
| MCHAR * | evalString |
Protected Attributes |
|
| int | openMode |
| UINT | usageCount |
| BitmapManager * | manager |
| int | flags |
| int | type |
| BMM_Color_48 | palette [256] |
| int | paletteSlots |
| UWORD * | gammaTable |
| RenderInfo * | rendInfo |
| GBuffer * | gbuffer |
Friends |
|
| class | GcsBitmap |
| BMMExport BitmapStorage | ( | ) |
| virtual BMMExport ~BitmapStorage | ( | ) | [virtual] |
| BMMExport float SetGamma | ( | float | gam | ) |
| int HasGamma | ( | ) | [inline] |
{ return (gammaTable!=NULL) ? 1:0; };
| BMMExport void SetHasGamma | ( | BOOL | onOff | ) |
| void UpdateGammaTable | ( | ) |
| BMMExport UWORD* GetInputGammaTable | ( | ) |
| BitmapManager* Manager | ( | ) | [inline] |
{ return manager; }
| int OpenMode | ( | ) | [inline] |
{ return openMode; }
| int Width | ( | ) | [inline] |
| int Height | ( | ) | [inline] |
| float Aspect | ( | ) | [inline] |
| float Gamma | ( | ) | [inline] |
| int Paletted | ( | ) | [inline] |
{ return (flags & MAP_PALETTED) ? paletteSlots:0; }
| int IsDithered | ( | ) | [inline] |
{ return (flags & MAP_DITHERED) ? 1:0; };
| int PreMultipliedAlpha | ( | ) | [inline] |
{ return (flags & MAP_ALPHA_PREMULTIPLIED) ? 1:0; };
| int HasAlpha | ( | ) | [inline] |
{ return (flags & MAP_HAS_ALPHA) ? 1:0; };
| void UseScaleColors | ( | int | on | ) | [inline] |
{ flags &= ~MAP_USE_SCALE_COLORS; if (on) flags |= MAP_USE_SCALE_COLORS; };
| int ScaleColors | ( | ) | [inline] |
{ return (flags & MAP_USE_SCALE_COLORS) ? 1:0; };
| static void ClampColor | ( | BMM_Color_64 & | out, |
| const BMM_Color_fl & | in | ||
| ) | [inline, static] |
| static void ClampColorA | ( | BMM_Color_64 & | out, |
| const BMM_Color_fl & | in | ||
| ) | [inline, static] |
{ ClampColor(out, in); out.a = in.clipColor(in.a); }
| static BMMExport void ScaleColor | ( | BMM_Color_64 & | out, |
| BMM_Color_fl | in | ||
| ) | [static] |
| static void ScaleColorA | ( | BMM_Color_64 & | out, |
| const BMM_Color_fl & | in | ||
| ) | [inline, static] |
{ ScaleColor(out, in); out.a = in.clipColor(in.a); }
| void ClampScaleColor | ( | BMM_Color_64 & | out, |
| const BMM_Color_fl & | in | ||
| ) | [inline] |
{ if (ScaleColors()) ScaleColor(out, in); else ClampColor(out, in); }
| void ClampScaleColorA | ( | BMM_Color_64 & | out, |
| const BMM_Color_fl & | in | ||
| ) | [inline] |
{ if (ScaleColors()) ScaleColorA(out, in); else ClampColorA(out, in); }
| int UsageCount | ( | ) | [inline] |
{ return usageCount; };
| int Type | ( | ) | [inline] |
{ return type; };
| int Flags | ( | ) | [inline] |
{ return flags; };
| void SetFlags | ( | DWORD | f | ) | [inline] |
{ flags |= f; }
| void ClearFlags | ( | DWORD | f | ) | [inline] |
Clears the given flags.
| virtual BMMExport int MaxRGBLevel | ( | ) | [pure virtual] |
| virtual BMMExport int MaxAlphaLevel | ( | ) | [pure virtual] |
| virtual BMMExport int IsHighDynamicRange | ( | ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport void* GetStoragePtr | ( | int * | type | ) | [inline, virtual] |
{ *type = BMM_NO_TYPE; return (NULL); }
| virtual BMMExport void* GetAlphaPtr | ( | int * | type | ) | [inline, virtual] |
{ *type = BMM_NO_TYPE; return (NULL); }
| virtual BMMExport void Scale | ( | WORD * | , |
| int | , | ||
| WORD * | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport void Scale | ( | float * | , |
| int | , | ||
| float * | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport BOOL GetSRow | ( | WORD * | , |
| int | , | ||
| WORD * | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport BOOL GetSRow | ( | float * | , |
| int | , | ||
| float * | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport BOOL PutSRow | ( | WORD * | , |
| int | , | ||
| WORD * | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport BOOL PutSRow | ( | float * | , |
| int | , | ||
| float * | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport BOOL GetSCol | ( | WORD * | , |
| WORD * | , | ||
| int | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport BOOL GetSCol | ( | float * | , |
| float * | , | ||
| int | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport BOOL PutSCol | ( | WORD * | , |
| WORD * | , | ||
| int | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport BOOL PutSCol | ( | float * | , |
| float * | , | ||
| int | , | ||
| int | |||
| ) | [virtual] |
| virtual BMMExport BOOL ScaleY | ( | Bitmap * | , |
| BMM_Color_64 * | , | ||
| WORD * | , | ||
| WORD * | , | ||
| HWND | , | ||
| int | cw = 0, |
||
| int | ch = 0 |
||
| ) | [virtual] |
| virtual BMMExport BOOL ScaleY | ( | Bitmap * | , |
| BMM_Color_fl * | , | ||
| float * | , | ||
| float * | , | ||
| HWND | , | ||
| int | cw = 0, |
||
| int | ch = 0 |
||
| ) | [virtual] |
| virtual BMMExport BOOL ScaleX | ( | Bitmap * | , |
| BMM_Color_64 * | , | ||
| WORD * | , | ||
| WORD * | , | ||
| HWND | , | ||
| int | cw = 0, |
||
| int | ch = 0 |
||
| ) | [virtual] |
| virtual BMMExport BOOL ScaleX | ( | Bitmap * | , |
| BMM_Color_fl * | , | ||
| float * | , | ||
| float * | , | ||
| HWND | , | ||
| int | cw = 0, |
||
| int | ch = 0 |
||
| ) | [virtual] |
| virtual BMMExport int StraightCopy | ( | Bitmap * | from | ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport int Get16Gray | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| WORD * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageHDR.
| virtual BMMExport int Put16Gray | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| WORD * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageHDR.
| virtual BMMExport int Get16Gray | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| float * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR.
| virtual BMMExport int Put16Gray | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| float * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR.
| virtual BMMExport int GetLinearPixels | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| BMM_Color_64 * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageHDR.
| virtual BMMExport int GetPixels | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| BMM_Color_64 * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageHDR.
| virtual BMMExport int PutPixels | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| BMM_Color_64 * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageHDR.
| virtual BMMExport int GetLinearPixels | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| BMM_Color_fl * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR.
| virtual BMMExport int GetPixels | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| BMM_Color_fl * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR.
| virtual BMMExport int PutPixels | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| BMM_Color_fl * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR.
| virtual BMMExport int GetIndexPixels | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| unsigned char * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR.
| virtual BMMExport int PutIndexPixels | ( | int | x, |
| int | y, | ||
| int | pixels, | ||
| unsigned char * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR.
| virtual BMMExport int Fill | ( | const BMM_Color_fl & | fillColor | ) | [virtual] |
| virtual BMMExport int Fill | ( | const BMM_Color_64 & | fillColor | ) | [virtual] |
| virtual BMMExport int CropImage | ( | int | width, |
| int | height, | ||
| BMM_Color_64 | fillcolor | ||
| ) | [pure virtual] |
Implemented in BitmapStorageHDR.
| virtual BMMExport int CropImage | ( | int | width, |
| int | height, | ||
| BMM_Color_fl | fillcolor | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR.
| virtual BMMExport int CropImage | ( | int | width, |
| int | height, | ||
| int | fillindex | ||
| ) | [pure virtual] |
Implemented in BitmapStorageHDR.
| virtual BMMExport int ResizeImage | ( | int | width, |
| int | height, | ||
| int | newpalette | ||
| ) | [pure virtual] |
| virtual BMMExport int CopyCrop | ( | Bitmap * | from, |
| BMM_Color_64 | fillcolor | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport int CopyCrop | ( | Bitmap * | from, |
| BMM_Color_fl | fillcolor | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport int CopyScaleLow | ( | Bitmap * | from | ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport int CopyScaleHigh | ( | Bitmap * | from, |
| HWND | hWnd, | ||
| BMM_Color_64 ** | buf = NULL, |
||
| int | w = 0, |
||
| int | h = 0 |
||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport int CopyScaleHigh | ( | Bitmap * | from, |
| HWND | hWnd, | ||
| BMM_Color_fl ** | buf = NULL, |
||
| int | w = 0, |
||
| int | h = 0 |
||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport int CopyImage | ( | Bitmap * | from, |
| int | operation, | ||
| BMM_Color_64 | fillcolor, | ||
| BitmapInfo * | bi = NULL |
||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport int CopyImage | ( | Bitmap * | from, |
| int | operation, | ||
| BMM_Color_fl | fillcolor, | ||
| BitmapInfo * | bi = NULL |
||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport int CopyImage | ( | Bitmap * | from, |
| int | operation, | ||
| int | fillindex | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR, and BitmapStorageHDR.
| virtual BMMExport int GetPalette | ( | int | start, |
| int | count, | ||
| BMM_Color_48 * | ptr | ||
| ) | [pure virtual] |
| virtual BMMExport int SetPalette | ( | int | start, |
| int | count, | ||
| BMM_Color_48 * | ptr | ||
| ) | [pure virtual] |
| virtual BMMExport int GetFiltered | ( | float | u, |
| float | v, | ||
| float | du, | ||
| float | dv, | ||
| BMM_Color_64 * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageHDR.
| virtual BMMExport int GetFiltered | ( | float | u, |
| float | v, | ||
| float | du, | ||
| float | dv, | ||
| BMM_Color_fl * | ptr | ||
| ) | [pure virtual] |
Implemented in BitmapStorageLDR.
| virtual BMMExport int Allocate | ( | BitmapInfo * | bi, |
| BitmapManager * | manager, | ||
| int | openMode | ||
| ) | [pure virtual] |
| virtual BMMExport int Connect | ( | ) | [pure virtual] |
| virtual BMMExport int Disconnect | ( | ) | [pure virtual] |
| virtual BMMExport int MapReady | ( | ) | [pure virtual] |
| virtual BMMExport int ClosestColor | ( | BMM_Color_48 | color | ) | [virtual] |
| virtual BMMExport int ClosestColor | ( | int | r, |
| int | g, | ||
| int | b | ||
| ) | [virtual] |
| virtual BMMExport void* GetChannel | ( | ULONG | channelID, |
| ULONG & | chanType | ||
| ) | [inline, virtual] |
{ return gbuffer?gbuffer->GetChannel(channelID, chanType):NULL;}
| GBuffer* GetGBuffer | ( | ) | [inline] |
{ return gbuffer; }
| virtual BMMExport ULONG CreateChannels | ( | ULONG | channelIDs | ) | [virtual] |
| virtual BMMExport void DeleteChannels | ( | ULONG | channelIDs | ) | [inline, virtual] |
{ if (gbuffer) gbuffer->DeleteChannels(channelIDs); }
| virtual BMMExport ULONG ChannelsPresent | ( | ) | [inline, virtual] |
{ return gbuffer?gbuffer->ChannelsPresent():0; }
| BMMExport RenderInfo* AllocRenderInfo | ( | ) |
| BMMExport RenderInfo* GetRenderInfo | ( | ) |
friend class GcsBitmap
[friend] |
int openMode
[protected] |
UINT usageCount
[protected] |
BitmapManager* manager
[protected] |
int flags
[protected] |
int type
[protected] |
BMM_Color_48 palette[256]
[protected] |
int paletteSlots
[protected] |
UWORD* gammaTable
[protected] |
RenderInfo* rendInfo
[protected] |