ScummVM API documentation
Lab::Image Class Reference

Public Member Functions

 Image (LabEngine *vm)
 
 Image (int w, int h, byte *d, LabEngine *vm, bool autoFree=true)
 
 Image (Common::File *s, LabEngine *vm)
 
void setData (byte *d, bool autoFree=true)
 
void drawImage (uint16 x, uint16 y)
 
void drawMaskImage (uint16 x, uint16 y)
 
void readScreenImage (uint16 x, uint16 y)
 
void blitBitmap (uint16 srcX, uint16 srcY, Image *imgDest, uint16 destX, uint16 destY, uint16 width, uint16 height, byte masked)
 

Public Attributes

uint16 _width
 
uint16 _height
 
byte * _imageData
 

Member Function Documentation

◆ drawImage()

void Lab::Image::drawImage ( uint16  x,
uint16  y 
)

Draws an image to the screen.

◆ drawMaskImage()

void Lab::Image::drawMaskImage ( uint16  x,
uint16  y 
)

Draws an image to the screen with transparency.

◆ readScreenImage()

void Lab::Image::readScreenImage ( uint16  x,
uint16  y 
)

Reads an image from the screen.

◆ blitBitmap()

void Lab::Image::blitBitmap ( uint16  srcX,
uint16  srcY,
Image imgDest,
uint16  destX,
uint16  destY,
uint16  width,
uint16  height,
byte  masked 
)

Blits a piece of one image to another.


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