C# Class Pinta.Core.PixelOp

Afficher le fichier Open project: xxgreg/Pinta Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Apply ( ColorBgra dst, ColorBgra src, int length ) : void
dst ColorBgra
src ColorBgra
length int
Résultat void

Apply() public méthode

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
Résultat void

Apply() public méthode

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
Résultat void

Apply() public méthode

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
Résultat void

ApplyBase() public méthode

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.
Résultat void

ComputeAlpha() public static méthode

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

PixelOp() public méthode

public PixelOp ( ) : System
Résultat System