Method ApplyBase
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Core.dll
ApplyBase(Surface, Point, Surface, Point, Size)
Provides a default implementation for performing dst = F(dst, src) or F(src) over some rectangle of interest. May be slightly faster than calling the other multi-parameter Apply method, as less variables are used in the implementation, thus inducing less register pressure.
public void ApplyBase(Surface dst, Point dstOffset, Surface src, Point srcOffset, Size roiSize)
Parameters
dstSurfaceThe Surface to write pixels to, and from which pixels are read and used as the lhs parameter for calling the method ColorBgra Apply(ColorBgra, ColorBgra).
dstOffsetPointThe pixel offset that defines the upper-left of the rectangle-of-interest for the dst Surface.
srcSurfaceThe Surface to read pixels from for the rhs parameter given to the method ColorBgra Apply(ColorBgra, ColorBgra).
srcOffsetPointThe pixel offset that defines the upper-left of the rectangle-of-interest for the src Surface.
roiSizeSizeThe size of the rectangles-of-interest for all Surfaces.