LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

difference between GetCtrlBitmap and GetCtrlDisplayBitmap

Solved!
Go to solution

What is the difference between the functions

GetCtrlBitmap() and GetCtrlDisplayBitmap()?

 

If it matters, this would be using CVI 8.5.

 

Many thanks.

0 Kudos
Message 1 of 4
(3,079 Views)

With GetCtrlDisplayBitmap you can obtain a screenshot image of any control and store it in a bitmap object.

On the other hand, with GetCtrlBitmap you can retrieve an image that is stored inside particular controls like picture controls, picture rings and so on.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,066 Views)

Thanks for your reply, Roberto, but I still don't understand.

 

What is the difference between a screenshot image of a control and

an image stored inside a control?

0 Kudos
Message 3 of 4
(3,043 Views)
Solution
Accepted by topic author lomed

A picture control can have an image inside it. A numeric or graph control cannot.

With GetCtrlBitmap you can retrieve the image which is loaded inside a picture control and only this one (without control frame, up-down arrows and other details); with GetCtrlDisplayBitmap you can obtain a copy of the complete control even if the control does not have a bitmap in it (e.g. a numeric complete with up-down arrows, radix sign and so on; a graph or stripchart, for which you copy also scale aspect and so on).



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(3,036 Views)