Table of Contents

Class UnaryPixelOps.SetAlphaChannel

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

Specialization of SetChannel that sets the alpha channel.

public class UnaryPixelOps.SetAlphaChannel : UnaryPixelOp, IPixelOp
Inheritance
UnaryPixelOps.SetAlphaChannel
Implements
Inherited Members

Remarks

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.

Constructors

SetAlphaChannel(byte)

Methods

Apply(ColorBgra)
Apply(ColorBgra*, ColorBgra*, int)
Apply(ColorBgra*, int)