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
dst
SurfaceThe 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).
dstOffset
PointThe pixel offset that defines the upper-left of the rectangle-of-interest for the dst Surface.
src
SurfaceThe Surface to read pixels from for the rhs parameter given to the method ColorBgra Apply(ColorBgra, ColorBgra).
srcOffset
PointThe pixel offset that defines the upper-left of the rectangle-of-interest for the src Surface.
roiSize
SizeThe size of the rectangles-of-interest for all Surfaces.