Read the current image from this viewport from the rendering system. If a view rectangle outside the actual view is specified, the entire view is captured.
note By default the image is returned upside-down. Pass
flipVertically to flip it along the x-axis.
|rect||ViewRect||The area of the view to read. The origin of a viewRect must specify the upper left corner.|
|targetSize||Point2d||The size of the image to be returned. The size can be larger or smaller than the original view.|
|flipVertically||boolean||If true, the image is flipped along the x-axis.|
Returns - The contents of the viewport within the specified rectangle as a bitmap image, or undefined if the image could not be read.
Last Updated: 20 September, 2019