invert Property


Indicates whether to invert the item images.

Object.defineProperty(ImageViewer.prototype, 'invert', 
	get: function(), 
	set: function(value) 
invert: boolean; 

Property Value

true to invert the item images; otherwise, false. The default value is false.


Changing the value of this property will fire the PropertyChanged and TransformChanged events.

This is a display value and the image data will not be changed.

Note for the LEADTOOLS JavaScript library, the item must use an HTMLCanvasElement (ImageViewerItem.Canvas must not be null). To easily transform all images into canvas elements when adding them to the viewer, set ImageViewer.AutoCreateCanvas to true.

If the URL of the image is not in the same domain, a security error might occur. For more information, refer to CanvasRenderingContext2D.getImageData.

For more information, refer to Image Viewer Appearance.


Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly