RotateAngle Property (original) (raw)
Summary
Value of the rotation angle to use when displaying the view.
Syntax
public virtual double RotateAngle { get; set; }
public:
virtual property double RotateAngle
{
double get()
void set(double value)
}
Property Value
The rotation angle for the image display, in degrees. The default value is 0.
Example
Run the demo. Now when you click the Example button, the image will rotate and the value of ResizeOnTransform will be flipped. Notice that when ResizeOnTransform is true, you can use the scrollbars to viewer the whole new image size. When the value isfalse, the image is rotated around its center and you might not be able to view the whole area
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:
using Leadtools;
using Leadtools.Controls;
using Leadtools.Codecs;
using Leadtools.Drawing;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
public void ImageViewerRotateAngle_Example()
{
Debug.WriteLine("Current _imageViewer.RotateAngle is " + _imageViewer.RotateAngle);
// Rotate the viewer to 90 degree
_imageViewer.RotateAngle = 90;
}