03-29-2014 10:28 PM
This is LabVIEW's example.
I want use cvi to like it. (push start button & picture will be whirl)
How do I create an image and Rotate it ?
03-31-2014 02:06 AM
Hey ,
Would you mind to share the name of this LabVIEW example ?
03-31-2014 02:09 AM
I do not know that LabVIEW example, but are you sure the program actually rotates the image?
The simplest way I can think of to do this is to have a set of images loaded into a picture ring control, each "rotated" a while with respect to the preceding one. The program can next simply show the images one by one with an appropriate dealy to mimic roulette rotation. It's more or less how animated gifs are made.
03-31-2014 02:20 AM
Labview's Example
03-31-2014 04:15 AM
The LV program does not rotates the image: it recalculates and redraws it instead. You can observe that numbers are not rotated but are always drawn horizontally.
You could replicate this behaviour using a canvas control and the appropriate functions to draw text and arcs and paint them. You can look at canvas.cws and piedemo.cws examples. They are already installed on your machine in samples directory: use the example finder (Helo >> Find examples menu function) to locate it.