C# Class Pinta.Core.PixelOp

Show file Open project: xxgreg/Pinta Class Usage Examples

Public Methods

Method Description
Apply ( ColorBgra dst, ColorBgra src, int length ) : void
Apply ( ImageSurface dst, Gdk dstOffset, ImageSurface src, Gdk srcOffset, Gdk roiSize ) : void
Apply ( ImageSurface dst, Gdk dstOffset, ImageSurface src, Gdk srcOffset, int scanLength ) : void
Apply ( ImageSurface dst, ImageSurface src, Gdk rois, int startIndex, int length ) : void
ApplyBase ( ImageSurface dst, Gdk dstOffset, ImageSurface src, Gdk srcOffset, Gdk roiSize ) : void

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.

ComputeAlpha ( byte la, byte ra ) : byte

Computes alpha for r OVER l operation.

PixelOp ( ) : System

Method Details

Apply() public method

public Apply ( ColorBgra dst, ColorBgra src, int length ) : void
dst ColorBgra
src ColorBgra
length int
return void

Apply() public method

public Apply ( ImageSurface dst, Gdk dstOffset, ImageSurface src, Gdk srcOffset, Gdk roiSize ) : void
dst Cairo.ImageSurface
dstOffset Gdk
src Cairo.ImageSurface
srcOffset Gdk
roiSize Gdk
return void

Apply() public method

public Apply ( ImageSurface dst, Gdk dstOffset, ImageSurface src, Gdk srcOffset, int scanLength ) : void
dst Cairo.ImageSurface
dstOffset Gdk
src Cairo.ImageSurface
srcOffset Gdk
scanLength int
return void

Apply() public method

public Apply ( ImageSurface dst, ImageSurface src, Gdk rois, int startIndex, int length ) : void
dst Cairo.ImageSurface
src Cairo.ImageSurface
rois Gdk
startIndex int
length int
return void

ApplyBase() public method

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 ApplyBase ( ImageSurface dst, Gdk dstOffset, ImageSurface src, Gdk srcOffset, Gdk roiSize ) : void
dst Cairo.ImageSurface 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 Gdk The pixel offset that defines the upper-left of the rectangle-of-interest for the dst Surface.
src Cairo.ImageSurface The Surface to read pixels from for the rhs parameter given to the method ColorBgra Apply(ColorBgra, ColorBgra)b>.
srcOffset Gdk The pixel offset that defines the upper-left of the rectangle-of-interest for the src Surface.
roiSize Gdk The size of the rectangles-of-interest for all Surfaces.
return void

ComputeAlpha() public static method

Computes alpha for r OVER l operation.
public static ComputeAlpha ( byte la, byte ra ) : byte
la byte
ra byte
return byte

PixelOp() public method

public PixelOp ( ) : System
return System