ScummVM API documentation
AGS3::BITMAP Class Reference
Inheritance diagram for AGS3::BITMAP:
AGS3::Surface

Public Member Functions

 BITMAP (Graphics::ManagedSurface *owner)
 
Graphics::ManagedSurfaceoperator* () const
 
Graphics::ManagedSurfacegetSurface ()
 
const Graphics::ManagedSurfacegetSurface () const
 
unsigned char * getPixels () const
 
unsigned char * getBasePtr (uint16 x, uint16 y) const
 
uint getTransparentColor () const
 
const Common::Point getOffsetFromOwner () const
 
int getpixel (int x, int y) const
 
void clear ()
 
void makeOpaque ()
 
void circlefill (int x, int y, int radius, int color)
 
void floodfill (int x, int y, int color)
 
void hLine (int x, int y, int x2, uint32 color)
 
void vLine (int x, int y, int y2, uint32 color)
 
void draw (const BITMAP *srcBitmap, const Common::Rect &srcRect, int dstX, int dstY, bool horizFlip, bool vertFlip, bool skipTrans, int srcAlpha, int tintRed=-1, int tintGreen=-1, int tintBlue=-1)
 
void stretchDraw (const BITMAP *srcBitmap, const Common::Rect &srcRect, const Common::Rect &destRect, bool skipTrans, int srcAlpha)
 
bool isSubBitmap () const
 

Public Attributes

int16 & w
 
int16 & h
 
int32 & pitch
 
Graphics::PixelFormatformat
 
bool clip
 
int ct
 
int cb
 
int cl
 
int cr
 
Common::Array< byte * > line
 

Member Function Documentation

◆ circlefill()

void AGS3::BITMAP::circlefill ( int  x,
int  y,
int  radius,
int  color 
)

Draws a solid filled in circle

◆ floodfill()

void AGS3::BITMAP::floodfill ( int  x,
int  y,
int  color 
)

Fills an enclosed area starting at a given point

◆ hLine()

void AGS3::BITMAP::hLine ( int  x,
int  y,
int  x2,
uint32  color 
)
inline

Draw a horizontal line

◆ vLine()

void AGS3::BITMAP::vLine ( int  x,
int  y,
int  y2,
uint32  color 
)
inline

Draw a vertical line.

◆ draw()

void AGS3::BITMAP::draw ( const BITMAP srcBitmap,
const Common::Rect srcRect,
int  dstX,
int  dstY,
bool  horizFlip,
bool  vertFlip,
bool  skipTrans,
int  srcAlpha,
int  tintRed = -1,
int  tintGreen = -1,
int  tintBlue = -1 
)

Draws the passed surface onto this one

◆ stretchDraw()

void AGS3::BITMAP::stretchDraw ( const BITMAP srcBitmap,
const Common::Rect srcRect,
const Common::Rect destRect,
bool  skipTrans,
int  srcAlpha 
)

Stretches and draws the passed surface onto this one


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