Method FitSurface
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Core.dll
FitSurface(ResamplingAlgorithm, Surface)
public void FitSurface(ResamplingAlgorithm algorithm, Surface source)
Parameters
algorithm
ResamplingAlgorithmsource
Surface
FitSurface(ResamplingAlgorithm, Surface, FitSurfaceOptions)
public void FitSurface(ResamplingAlgorithm algorithm, Surface source, FitSurfaceOptions options)
Parameters
algorithm
ResamplingAlgorithmsource
Surfaceoptions
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
ResamplingAlgorithmThe surface to copy pixels from.
source
SurfaceThe algorithm to use.
dstRoi
RectangleThe 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
ResamplingAlgorithmThe surface to copy pixels from.
source
SurfaceThe algorithm to use.
dstRoi
RectangleThe rectangle to clip rendering to.
options
FitSurfaceOptionsThe options to use.