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
Afficher le fichier Open project: PintaProject/Pinta.ImageManipulation

Méthodes publiques

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

public Apply ( ColorBgra color ) : ColorBgra
color ColorBgra
Résultat ColorBgra

Apply() public méthode

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

Apply() public méthode

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

SetAlphaChannelOp() public méthode

public SetAlphaChannelOp ( byte alphaValue ) : System
alphaValue byte
Résultat System