Resample current image. The content of the image changes (stretched to new size).
Resampling black/white (1bit) images with FilterType is not None, Resample converts the image to 24bit
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public void Resample( int newWidth, int newHeight, IEResampleFilter filter, bool maintainAspectRatio )
Public Sub Resample ( _ newWidth As Integer, _ newHeight As Integer, _ filter As IEResampleFilter, _ maintainAspectRatio As Boolean _ )
public: void Resample( int newWidth, int newHeight, IEResampleFilter filter, bool maintainAspectRatio )
Parameters
- newWidth
- Int32
New image width in pixels. If NewWidth is -1 then it is calculated automatically, respecting the proportions.
- newHeight
- Int32
New image height in pixels. If NewHeight is -1 then it is calculated automatically, respecting the proportions.
- filter
- IEResampleFilter
Resampling interpolation algorithm.
- maintainAspectRatio
- Boolean
Automatically reduces NewWidth or NewHeight to ensure the original proportions of the image are maintained
Examples
CopyC#
// resample to width=100, with aspect ratio and using a FastLinear filter Image.Resample(100,-1,IEResampleFilter.FastLinear);