LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
RasterPaintSizeMode Enumeration
See Also  
Leadtools Namespace : RasterPaintSizeMode Enumeration



Determines how to fit the image in the destination rectangle. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Enum RasterPaintSizeMode 
   Inherits System.Enum
   Implements IComparableIConvertibleIFormattable 
Visual Basic (Usage)Copy Code
Dim instance As RasterPaintSizeMode
C# 
public enum RasterPaintSizeMode : System.Enum, IComparableIConvertibleIFormattable  
C++/CLI 
public enum class RasterPaintSizeMode : public System.Enum, IComparableIConvertibleIFormattable  

Members

MemberDescription
FitFit 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
FitAlwaysAlways fit the image into the destination rectangle while maintaining the aspect ratio even if the image size is smaller than the destination rectangle
FitWidthFit the image width to be the size of the width of the destination rectangle while maintaining the aspect ratio
NormalNormal, no sizing
StretchFit 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: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also