Method FitSurface
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Core.dll
FitSurface(ResamplingAlgorithm, Surface)
public void FitSurface(ResamplingAlgorithm algorithm, Surface source)
Parameters
algorithmResamplingAlgorithmsourceSurface
FitSurface(ResamplingAlgorithm, Surface, FitSurfaceOptions)
public void FitSurface(ResamplingAlgorithm algorithm, Surface source, FitSurfaceOptions options)
Parameters
algorithmResamplingAlgorithmsourceSurfaceoptionsFitSurfaceOptions
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
algorithmResamplingAlgorithmThe surface to copy pixels from.
sourceSurfaceThe algorithm to use.
dstRoiRectangleThe 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
algorithmResamplingAlgorithmThe surface to copy pixels from.
sourceSurfaceThe algorithm to use.
dstRoiRectangleThe rectangle to clip rendering to.
optionsFitSurfaceOptionsThe options to use.