ScummVM API documentation
AGS3::AGS::Shared::Bitmap Class Reference

Public Member Functions

 Bitmap (int width, int height, int color_depth=0)
 
 Bitmap (Bitmap *src, const Rect &rc)
 
 Bitmap (BITMAP *al_bmp, bool shared_data)
 
bool Create (int width, int height, int color_depth=0)
 
bool CreateTransparent (int width, int height, int color_depth=0)
 
bool CreateSubBitmap (Bitmap *src, const Rect &rc)
 
bool ResizeSubBitmap (int width, int height)
 
bool CreateCopy (Bitmap *src, int color_depth=0)
 
bool WrapAllegroBitmap (BITMAP *al_bmp, bool shared_data)
 
void Destroy ()
 
bool LoadFromFile (const String &filename)
 
bool LoadFromFile (const char *filename)
 
bool LoadFromFile (PACKFILE *pf)
 
bool SaveToFile (const String &filename, const void *palette)
 
bool SaveToFile (Common::WriteStream &out, const void *palette)
 
bool SaveToFile (const char *filename, const void *palette)
 
BITMAPGetAllegroBitmap ()
 
bool IsMemoryBitmap () const
 
bool IsVideoBitmap () const
 
bool IsLinearBitmap () const
 
bool isSubBitmap () const
 
bool IsSameBitmap (Bitmap *other) const
 
bool IsNull () const
 
bool IsEmpty () const
 
int GetWidth () const
 
int GetHeight () const
 
Size GetSize () const
 
Point GetSubOffset () const
 
int GetColorDepth () const
 
int GetBPP () const
 
int GetDataSize () const
 
int GetLineLength () const
 
const unsigned char * GetData () const
 
const unsigned char * GetScanLine (int index) const
 
unsigned char * GetScanLine (int index)
 
color_t GetMaskColor () const
 
color_t GetCompatibleColor (color_t color)
 
void SetClip (const Rect &rc)
 
void ResetClip ()
 
Rect GetClip () const
 
void Blit (Bitmap *src, int dst_x=0, int dst_y=0, BitmapMaskOption mask=kBitmap_Copy)
 
void Blit (Bitmap *src, int src_x, int src_y, int dst_x, int dst_y, int width, int height, BitmapMaskOption mask=kBitmap_Copy)
 
void MaskedBlit (Bitmap *src, int dst_x, int dst_y)
 
void StretchBlt (Bitmap *src, const Rect &dst_rc, BitmapMaskOption mask=kBitmap_Copy)
 
void StretchBlt (Bitmap *src, const Rect &src_rc, const Rect &dst_rc, BitmapMaskOption mask=kBitmap_Copy)
 
void AAStretchBlt (Bitmap *src, const Rect &dst_rc, BitmapMaskOption mask=kBitmap_Copy)
 
void AAStretchBlt (Bitmap *src, const Rect &src_rc, const Rect &dst_rc, BitmapMaskOption mask=kBitmap_Copy)
 
void TransBlendBlt (Bitmap *src, int dst_x, int dst_y)
 
void LitBlendBlt (Bitmap *src, int dst_x, int dst_y, int light_amount)
 
void FlipBlt (Bitmap *src, int dst_x, int dst_y, GraphicFlip flip)
 
void RotateBlt (Bitmap *src, int dst_x, int dst_y, fixed_t angle)
 
void RotateBlt (Bitmap *src, int dst_x, int dst_y, int pivot_x, int pivot_y, fixed_t angle)
 
void Clear (color_t color=0)
 
void ClearTransparent ()
 
void PutPixel (int x, int y, color_t color)
 
int GetPixel (int x, int y) const
 
void DrawLine (const Line &ln, color_t color)
 
void DrawTriangle (const Triangle &tr, color_t color)
 
void DrawRect (const Rect &rc, color_t color)
 
void FillRect (const Rect &rc, color_t color)
 
void FillCircle (const Circle &circle, color_t color)
 
void Fill (color_t color)
 
void FillTransparent ()
 
void FloodFill (int x, int y, color_t color)
 
unsigned char * GetScanLineForWriting (int index)
 
unsigned char * GetDataForWriting ()
 
void SetScanLine (int index, unsigned char *data, int data_size=-1)
 

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