Table of Contents | ||||
|
||||
GetImageHeight | ||||
Purpose Queries the surface of the given image or the main surface |
||||
Protoype int CImageMngr::GetImageHeight (string str_img_id, int i_flags = IMAGE) |
||||
Parameters
|
||||
Description This function is used to get the height of a surface. You can either get the height of an image object by passing in its ID for str_img_id or you can get the height of the primary surface by passing in PRIMARY instead. If you want to get the height of an image object, you can also specify whether you want to get the height of the entire image by passing in IMAGE for i_flags or just the height of cell in a template by passing CELL instead. |
||||
Use CImageMngr image; // get the height of the primary surface int height = image.GetImageHeight(IMAGE, PRIMARY); // get the height of cells in a template height = image.GetImageHeight(CELL, "my_image"); |
||||
|
||||
|