Draw a rectangle
matew
Posts: 20
Hi there!
Is it possible to draw a rectangle over my Image? For example, I got an image from an active viewport
// Get the active viewport var oViewportMgr = MainWindow.getViewportMgr(); var oViewport = oViewportMgr.getActiveViewport().get3DViewport(); // Capture the contents of the active viewport var fullImage = oViewport.captureImage();
Now, I need to draw a rectangle over this image at the point (10,10) with size (100,100).
How can I do that without drawing it pixel by pixel or loading a frame from another image on the hard drive?
Thank you!