08-07-2010 11:06 PM
Hello:
I have some questions about cvi canvas:
(1) I want to show a lot of pictures in the canvas, then I want to select one of these pictures with the mouse, how can I know the mouse position is in one of these picture area?
(2) If I realize (1)'s function, I want to zoom in and zoom out the selected picture like this . Through the eight points on the border to zoom in and zoom out the selected picture.
(3) I want to move the selected picture to a new position in the canvas, how can I realize this? I only want to move one of these pictures , not scroll the canvas.
Thanks.
Mark
08-08-2010 10:18 PM
canvas可以load多个图片吗?
08-09-2010 03:58 AM
I'd venture to suggest suggest that you will be better off using a graph control rather than a canvas control. Each time you plot an object on a graph control, you get a plot handle returned that enables you to manipulate that object (e.g. to move it). With a canvas control, to move an object you would have to redraw the whole control.