LEADTOOLS JavaScript (Leadtools.Controls)

Reverse Property

Show in webframe
Example 
Gets or sets a value which determines if the ImageViewer will display the image reversed horizontally.
Syntax
get_reverse();
set_reverse(value);
Object.defineProperty('reverse');

Property Value

TypeDescription
booleantrue to display the image reversed horizontally; otherwise, it is false. 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. Only the value of Transform.

Example

Start with the ImageViewer example, remove all the code inside the example function (search for the "// TODO: add example code here" comment) and insert the following code:

Open the HTML page in your browser, now as you click the Example button, the image will be reversed horizontally.

example: function SiteLibrary_DefaultPage$example(viewer) {
   viewer.set_reverse(!viewer.get_reverse());
},
See Also

Reference

ImageViewer Object
ImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.