CComponentsPicture: add methode to get real image size

This commit is contained in:
2017-04-25 11:21:44 +02:00
parent cffab5f8f9
commit 0aae491ccc
2 changed files with 20 additions and 11 deletions

View File

@@ -54,9 +54,10 @@ class CComponentsPicture : public CComponentsItem
///screen cache content for painted image
fb_pixel_t *image_cache;
///current original image dimensions
///current image dimensions
int dx, dy;
///original image dimensions
int dx_orig, dy_orig;
///cached image dimensions
int dxc, dyc;
@@ -146,8 +147,8 @@ class CComponentsPicture : public CComponentsItem
///returns current assigned image name
std::string getPictureName(){return pic_name;}
// ///handle image size
// void getSize(int* width_image, int *height_image);
///get original image size
void getRealSize(int* dx_orig, int *dy_orig);
///return width of item
int getWidth();
///return height of item