invert Property

Summary

Indicates whether to invert the item images.

Syntax
TypeScript
JavaScript
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.

Remarks

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.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.