←Select platform

RasterResizeMode Enumeration

Summary

Determines how to fit the image in the destination rectangle.

Syntax

C#
VB
C++
[DataContractAttribute(Namespace="http://Leadtools.Services.Raster.DataContracts/2009/01", Name="RasterResizeMode")] 
public enum RasterResizeMode 
  
<DataContractAttribute(Namespace="http://Leadtools.Services.Raster.DataContracts/2009/01", Name="RasterResizeMode")> 
Public Enum RasterResizeMode  
   Inherits System.Enum 
   Implements System.IComparable, System.IConvertible, System.IFormattable  
[DataContractAttribute(Namespace="http://Leadtools.Services.Raster.DataContracts/2009/01", Name="RasterResizeMode")] 
public enum class RasterResizeMode : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable   

Members

ValueMemberDescription
0NormalNormal, no sizing
1FitFit 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.
2FitAlwaysAlways fit the image into the destination rectangle while maintaining the aspect ratio even if the image size is smaller than the destination rectangle.
3FitWidthFit the image width to be the size of the width of the destination rectangle while maintaining the aspect ratio.
4StretchFit the image to fill the destination rectangle. Aspect ratio might not be maintained.
Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Services.Raster.DataContracts Assembly