public double RotateAngle {get; set;}
get_RotateAngle();
set_RotateAngle(value);
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.
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).
[TestMethod] public void RotateAngleExample() { // Rotate by 30 _viewer.RotateAngle = _viewer.RotateAngle + 15; _infoLabel.Text = "Angle: " + _viewer.RotateAngle; }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2