IPixelResampler Interface

Provides access to members that control a pixel resampler.

Members

Name Description
Read-only property DownSampling Indicates if this is a down sampling only type of resampler.
Read/write property LinearScaling Indicates if only linear scaling is necessary.
Method Resample Resamples an input pixel block into an output pixel block.
Read-only property SupportLinearScaling Indicates if this resampler can accept simplified point array for simple linear scaling.
Read-only property WindowSize The resampling window size in terms of number of source pixels.

IPixelResampler.DownSampling Property

Indicates if this is a down sampling only type of resampler.

Public ReadOnly Property DownSampling As Boolean
public bool DownSampling {get;}

IPixelResampler.LinearScaling Property

Indicates if only linear scaling is necessary.

Public Property LinearScaling As Boolean
public bool LinearScaling {get; set;}

IPixelResampler.Resample Method

Resamples an input pixel block into an output pixel block.

Public Sub Resample ( _
    ByVal iCol As Integer, _
    ByVal iRow As Integer, _
    ByVal nCols As Integer, _
    ByVal nRows As Integer, _
    ByRef points As WKSPoint, _
    ByVal ulx As Double, _
    ByVal uly As Double, _
    ByVal Dx As Double, _
    ByVal Dy As Double, _
    ByVal pSrcPixelBlock As IPixelBlock, _
    ByVal pDstPixelBlock As IPixelBlock _
)
public void Resample (
    int iCol,
    int iRow,
    int nCols,
    int nRows,
    ref WKSPoint points,
    ref double ulx,
    ref double uly,
    ref double Dx,
    ref double Dy,
    ref IPixelBlock pSrcPixelBlock,
    ref IPixelBlock pDstPixelBlock
);

IPixelResampler.SupportLinearScaling Property

Indicates if this resampler can accept simplified point array for simple linear scaling.

Public ReadOnly Property SupportLinearScaling As Boolean
public bool SupportLinearScaling {get;}

IPixelResampler.WindowSize Property

The resampling window size in terms of number of source pixels.

Public ReadOnly Property WindowSize As Integer
public int WindowSize {get;}

Classes that implement IPixelResampler

Classes Description
RGB32PixelResampler A 32-bit RGB(A) pixel resampler class.

Remarks

IPixelResampler is a generic interface that is supported by a pixel resampler, which is used for RasterXformer.

The concrete pixel resampler is SimplePixelResampler, user can create a custom pixel resampler by implementing IPixelResampler interface.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.