Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

Draw a rectangle

$
0
0

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!


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>