Table of Contents | ||||
|
||||
SetAlpha | ||||
Purpose Sets the alpha transparency value for a given image surface |
||||
Protoype void CImageMngr::SetAlpha (string str_img_id, int i_alpha) |
||||
Parameters
|
||||
Description Each image surface has its own alpha transparency level. The range of values for transparency are from 255 (opaque) to 0 (transparent). The mid-value of 128 is an optomized value as well. |
||||
Use CImageMngr image; // set image half transparent image.SetAlpha("my_image", 128); |
||||
|
||||
|