Table of Contents

Method FitSurface

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

FitSurface(ResamplingAlgorithm, Surface)

public void FitSurface(ResamplingAlgorithm algorithm, Surface source)

Parameters

algorithm ResamplingAlgorithm
source Surface

FitSurface(ResamplingAlgorithm, Surface, FitSurfaceOptions)

public void FitSurface(ResamplingAlgorithm algorithm, Surface source, FitSurfaceOptions options)

Parameters

algorithm ResamplingAlgorithm
source Surface
options FitSurfaceOptions

FitSurface(ResamplingAlgorithm, Surface, Rectangle)

Fits the source surface to this surface using the given algorithm.

public void FitSurface(ResamplingAlgorithm algorithm, Surface source, Rectangle dstRoi)

Parameters

algorithm ResamplingAlgorithm

The surface to copy pixels from.

source Surface

The algorithm to use.

dstRoi Rectangle

The rectangle to clip rendering to.

FitSurface(ResamplingAlgorithm, Surface, Rectangle, FitSurfaceOptions)

Fits the source surface to this surface using the given algorithm and options.

public void FitSurface(ResamplingAlgorithm algorithm, Surface source, Rectangle dstRoi, FitSurfaceOptions options)

Parameters

algorithm ResamplingAlgorithm

The surface to copy pixels from.

source Surface

The algorithm to use.

dstRoi Rectangle

The rectangle to clip rendering to.

options FitSurfaceOptions

The options to use.