Table of Contents

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 Surface

The 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 Point

The pixel offset that defines the upper-left of the rectangle-of-interest for the dst Surface.

src Surface

The Surface to read pixels from for the rhs parameter given to the method ColorBgra Apply(ColorBgra, ColorBgra).

srcOffset Point

The pixel offset that defines the upper-left of the rectangle-of-interest for the src Surface.

roiSize Size

The size of the rectangles-of-interest for all Surfaces.