Table of Contents

 
GetAlpha
 

Purpose

Queries the surface for the alpha transparency level

 

Protoype

int CImageMngr::GetAlpha (string str_img_id)
 

Parameters

img_id the ID of the image object to query
 

Description

This function gets the current alpha transparency level for the given image surface. Values range from 255 (opaque) to 0 (transparent).

 

Use

CImageMngr image;
int i_alpha = image.GetAlpha("my_image");
 

Prev: EraseImage