|
< index < 5. Image toolkit |
===================================== |
C++ : void TCODImage::getSize(int *w,int *h) const C : void TCOD_image_get_size(TCOD_image_t image, int *w,int *h)
| Parameter | Description |
|---|---|
| image | In the C version, the image handler, obtained with the load function. |
| w,h | When the function returns, those variables contain the size of the image. |
C++ : TCODImage *pix = new TCODImage(80,50);
int w,h;
pix->getSize(&w,&h); // w = 80, h = 50
C : TCOD_image_t pix = TCOD_image_new(80,50);
int w,h;
TCOD_image_get_size(pix,&w,&h); /* w = 80, h = 50 */