Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.03.25
PaintSizeMode Enumeration
See Also  
Leadtools.Windows.Controls Namespace : PaintSizeMode Enumeration





Determines how to fit the image in the destination rectangle.

Syntax

Visual Basic (Declaration) 
Public Enum PaintSizeMode 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As PaintSizeMode
C# 
public enum PaintSizeMode : Enum 
Managed Extensions for C++ 
__value public enum PaintSizeMode : public Enum 
C++/CLI 
public enum class PaintSizeMode : public Enum 
XAML Attributes Usage 

<object SizeMode=Leadtools.Windows.Controls.PaintSizeMode .../>

Members

MemberDescription
Normal Normal, no sizing
Fit Fit the image into the destination rectangle while maintaining the aspect ratio. If the image size is smaller than the destination rectangle, do not perform resizing.
FitAlways Always fit the image into the destination rectangle while maintaining the aspect ratio even if the image size is smaller than the destination rectangle.
FitWidth Fit the image width to be the size of the width of the destination rectangle while maintaining the aspect ratio.
Stretch Fit the image to fill the destination rectangle. Aspect ratio might not be maintained.

Remarks

Used in the MeasureOverride method to determine how to fit the image in the destination rectangle which is the availableSize parameter in the MeasureOverride method.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Windows.Controls.PaintSizeMode

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also