| Visual Basic (Declaration) | |
|---|---|
| Public Enum RasterPaintSizeMode Inherits System.Enum Implements IComparable, IConvertible, IFormattable | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
| Dim instance As RasterPaintSizeMode | |
| C# | |
|---|---|
| public enum RasterPaintSizeMode : System.Enum, IComparable, IConvertible, IFormattable | |
| C++/CLI | |
|---|---|
| public enum class RasterPaintSizeMode : public System.Enum, IComparable, IConvertible, IFormattable | |
| Member | Description | 
|---|---|
| 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 | 
| Normal | Normal, no sizing | 
| Stretch | Fit the image to fill the destination rectangle. Aspect ratio might not be maintained. | 
Used by the the RasterImage.CalculatePaintModeRectangle method to determines how to fit the image in the destination rectangle.
            System.Object
   System.ValueType
      System.Enum
         Leadtools.RasterPaintSizeMode
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
 
  