Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
RasterPaintSizeMode Enumeration
See Also  
Leadtools Namespace : RasterPaintSizeMode Enumeration




Determines how to fit the image in the destination rectangle.

Syntax

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

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, no resizing is done
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 by the the RasterImage.CalculatePaintModeRectangle method to determines how to fit the image in the destination rectangle.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.RasterPaintSizeMode

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also