←Select platform

ResizeOnRotate Property

Summary

Gets or sets a value that indicates whether the viewer should change the size of the scrolling area when the image is rotated.

Syntax

C#
VB
Java
Objective-C
WinRT C#
public bool ResizeOnRotate {get; set;} 
Public Property ResizeOnRotate As Boolean 
public bool ResizeOnRotate {get; set;} 
>@property (nonatomic, assign) BOOL resizeOnRotate 
public boolean getResizeOnRotate() 
public void setResizeOnRotate(boolean resize) 
             
  
get_ResizeOnRotate(); 
set_ResizeOnRotate(value); 
Object.defineProperty('ResizeOnRotate');  

Property Value

true to change the size of the scrolling area when the image is rotated; otherwise, it is false. Default value is true.

Remarks

Changing the value of this property will fire the PropertyChanged and TransformChanged events.

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, the ResizeOnRotate property determines whether the viewer should change the size of the scrolling area as well. 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. If ResizeOnRotate is set to true (the default value), 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).

If the value of ResizeOnRotate is set to false, then the image will be rotated around its center and no sizing will be performed and parts of the image might be end up outside the visible area.

Requirements

Target Platforms

Help Version 19.0.2017.10.28
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly (WinRT / WPF / iOS / OS X / Android)