C# Class Apachai.Effects.Core.PixelOp

Datei anzeigen Open project: garuma/apachai

Public Methods

Method Description
Apply ( FastBitmap dst, FastBitmap src, Rectangle rois, int startIndex, int length ) : void
Apply ( FastBitmap dst, Point dstOffset, FastBitmap src, Point srcOffset, Size roiSize ) : void
Apply ( FastBitmap dst, Point dstOffset, FastBitmap src, Point srcOffset, int scanLength ) : void
Apply ( PixelData dst, PixelData src, int length ) : void
ApplyBase ( FastBitmap dst, Point dstOffset, FastBitmap src, Point srcOffset, Size 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 ( FastBitmap dst, FastBitmap src, Rectangle rois, int startIndex, int length ) : void
dst System.Drawing.FastBitmap
src System.Drawing.FastBitmap
rois System.Drawing.Rectangle
startIndex int
length int
return void

Apply() public method

public Apply ( FastBitmap dst, Point dstOffset, FastBitmap src, Point srcOffset, Size roiSize ) : void
dst System.Drawing.FastBitmap
dstOffset Point
src System.Drawing.FastBitmap
srcOffset Point
roiSize System.Drawing.Size
return void

Apply() public method

public Apply ( FastBitmap dst, Point dstOffset, FastBitmap src, Point srcOffset, int scanLength ) : void
dst System.Drawing.FastBitmap
dstOffset Point
src System.Drawing.FastBitmap
srcOffset Point
scanLength int
return void

Apply() public method

public Apply ( PixelData dst, PixelData src, int length ) : void
dst System.Drawing.PixelData
src System.Drawing.PixelData
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 ( FastBitmap dst, Point dstOffset, FastBitmap src, Point srcOffset, Size roiSize ) : void
dst System.Drawing.FastBitmap The Surface to write pixels to, and from which pixels are read and used as the lhs parameter for calling the method PixelData Apply(PixelData, PixelData).
dstOffset Point The pixel offset that defines the upper-left of the rectangle-of-interest for the dst Surface.
src System.Drawing.FastBitmap The Surface to read pixels from for the rhs parameter given to the method PixelData Apply(PixelData, PixelData)b>.
srcOffset Point The pixel offset that defines the upper-left of the rectangle-of-interest for the src Surface.
roiSize System.Drawing.Size 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