Draw a rectangle
![matew](https://secure.gravatar.com/avatar/af87b46a978a3478308b4431d7002bd5?&r=pg&s=100&d=https%3A%2F%2Fvanillicon.com%2Faf87b46a978a3478308b4431d7002bd5_100.png)
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!