| Table of Contents | ||||
|
|
||||
| ChangeAlpha | ||||
|
Purpose Changes the alpha transparency value for a given image surface relative to its current value |
||||
|
Protoype void CImageMngr::ChangeAlpha (string str_img_id, int i_alpha_change) |
||||
|
Parameters
|
||||
|
Description This function changes the value of a given image surface's alpha value by a given amount. If a surface has an alpha value of 45, passing in a change of 15 will set an alpha value of 60. |
||||
|
Use CImageMngr image; // increase the alpha by 25
image.ChangeAlpha("my_image", 25);
|
||||
|
|
||||
|