←Select platform

ResizeOnTransform Property (ImageViewerItem)

Summary

Indicates whether the item size should change when then item is transformed.

Syntax

C#
VB
C++
public bool ResizeOnTransform { get; set; } 
Public Property ResizeOnTransform() As Boolean 
   Get 
   Set 
public:  
   property bool ResizeOnTransform 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true if the item size should when the item is transformed, otherwise; false. Default value is true.

Remarks

When a transformation might cause the item size to be changed, for example, if the image size is 100 by 200 pixels and you rotate it by 90 degrees clock wise then the new image size would be 200 by 100 pixels. If the value of ResizeOnTransform is true, then the item size (Size) will automatically be updated with this new value. If the value is false, then the item size will not update it. The following shows the difference between the two cases:

The ClipImageToContent will determine how to clip the image outside the content area if ResizeOnTransform was set to false.

For more information, refer to Image Viewer Items and Image Viewer Appearance.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls.WinForms Assembly
Click or drag to resize