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

DisplayImageFile() does not change dimensions of picture control

$
0
0

Hi

 

I'm setting image of a picture control with DisplayImageFile() + setting the control attribute ATTR_FIT_MODE=VAL_SIZE_TO_IMAGE. The image size is bigger then the control size and I want the control to resize to the image size.

 

It works fine except when I query the control dimensions with GetCtrlAttribute(panel,control,ATTR_HEIGHT,&height), I get the original size(before calling DisplayImageFile())...

 

It seems I miss something basic...

 

Environment: LAB Windows CVI 2012 , Windows 7

 

Thanks in advance

Ramy


Viewing all articles
Browse latest Browse all 5372

Trending Articles



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