Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

Getting the original size of an image in a picture control

$
0
0

Hello all,

how do I get the original size of the image contained within a picture control (which has been resized) ?

I thought I could simply do:

 

SetCtrlAttribute(pnl, ctrl, ATTR_FIT_MODE, VAL_SIZE_TO_IMAGE);
GetCtrlAttribute(pnl, ctrl, ATTR_WIDTH,  &W);
GetCtrlAttribute(pnl, ctrl, ATTR_HEIGHT, &H);

But I still get the size of the control, not the image. Even if I call ProcessDrawEvents in between.


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>