LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Rotating a Canvas for printing

Hi,

 

I currently do an XY scan that draws the measured points to a canvas.   To print the Scan I redraw the XY scan on to a seperate panel and send the print job to the default print or the user has the option to copy the panel as a bitmap.  I need to rotate the graph and axis 90 degrees.  Anyone have a quick way to do that?

 

Scan.jpg

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

This old discussion can help you in developing a routine for rotating the canvas. Both solutionsin that thread start getting the bitmap image of the control with GetCtrlDisplayBitmap, apply the rotation and store the rotated bitmap again into a picture or canvas control.



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?
Message 2 of 4
(3,720 Views)

Thanks,

 

I'll give it a try

0 Kudos
Message 3 of 4
(3,717 Views)

Thanks.  works great.  Now I have to figure out how to reformat the rest.

0 Kudos
Message 4 of 4
(3,707 Views)