C# Class Pinta.ImageManipulation.UnaryPixelOperations.SetAlphaChannelOp

Specialization of SetChannel that sets the alpha channel.
This class depends on the system being litte-endian with the alpha channel occupying the 8 most-significant-bits of a ColorBgra instance. By the way, we use addition instead of bitwise-OR because an addition can be perform very fast (0.5 cycles) on a Pentium 4.
Inheritance: UnaryPixelOp
Mostrar archivo Open project: PintaProject/Pinta.ImageManipulation

Public Methods

Method Description
Apply ( ColorBgra color ) : ColorBgra
Apply ( ColorBgra src, ColorBgra dst, int length ) : void
Apply ( ColorBgra ptr, int length ) : void
SetAlphaChannelOp ( byte alphaValue ) : System

Method Details

Apply() public method

public Apply ( ColorBgra color ) : ColorBgra
color ColorBgra
return ColorBgra

Apply() public method

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

Apply() public method

public Apply ( ColorBgra ptr, int length ) : void
ptr ColorBgra
length int
return void

SetAlphaChannelOp() public method

public SetAlphaChannelOp ( byte alphaValue ) : System
alphaValue byte
return System