darkxor Posted April 14, 2016 Posted April 14, 2016 Is there API function to make screenshot? Or any code snippet that does this functionality? Thanks, darkxor.
GaetanoH Posted April 14, 2016 Posted April 14, 2016 Check the Utilities Class. It has takeScreenshot(); method! 1
FrostBug Posted April 14, 2016 Posted April 14, 2016 If you want paint etc. on the image, pass the image graphics thru your onPaint method once 1
GaetanoH Posted April 16, 2016 Posted April 16, 2016 If you want paint etc. on the image, pass the image graphics thru your onPaint method onceCan you explain?
FrostBug Posted April 16, 2016 Posted April 16, 2016 Can you explain? 1. Grab the canvas buffered image (Available in ColorPicker and WrappedCanvas) 2. Create a Graphics object from the buffered image 3. Pass the graphics object to the onPaint method of your script 4. Save the image Something like that 1
GaetanoH Posted April 16, 2016 Posted April 16, 2016 1. Grab the canvas buffered image (Available in ColorPicker and WrappedCanvas) 2. Create a Graphics object from the buffered image 3. Pass the graphics object to the onPaint method of your script 4. Save the image Something like that Thank you very much for the explanation!