Gets or sets the value of the rotation angle to use when displaying the image.
public double RotateAngle {get; set;}
Public Property RotateAngle As Double
public double RotateAngle {get; set;}
@property (nonatomic, assign) double rotateAngle
public float getRotateAngle()
public void setRotateAngle(float angle)
get_RotateAngle();
set_RotateAngle(value);
Object.defineProperty('RotateAngle');
The rotation angle for the image display, in degrees. The default value is 0.
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 matrix is changed.
Rotating an image is similar to rotating a rectangle, the values of "width" and "height" might change. When you rotate the image using the RotateAngle property. For example, if you have an image that is 100 by 200 pixels and you rotate it by 90 degrees clock wise, the new image size should be 200 by 100 pixels. Then the viewer will rotate the image around 0,0 and translate it to come up with a transformation that will show the image in this position. The new scroll area will be adjusted according to the image's new size (200, 100).
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Controls;
public void RotateAngleExample()
{
// Rotate by 30
_viewer.RotateAngle = _viewer.RotateAngle + 15;
_infoLabel.Text = "Angle: " + _viewer.RotateAngle;
}
Products |
Support |
Feedback: RotateAngle Property (ImageViewer) - OLeadtools.Controls |
Introduction |
Help Version 19.0.2017.3.23
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.