Class PixelTypeInfo
- Namespace
- SixLabors.ImageSharp.Formats
- Assembly
- SixLabors.ImageSharp.dll
Contains information about the pixels that make up an images visual data.
public class PixelTypeInfo
- Inheritance
-
PixelTypeInfo
- Inherited Members
Constructors
PixelTypeInfo(int)
Initializes a new instance of the PixelTypeInfo class.
public PixelTypeInfo(int bitsPerPixel)
Parameters
bitsPerPixel
intColor depth, in number of bits per pixel.
PixelTypeInfo(int, PixelAlphaRepresentation)
Initializes a new instance of the PixelTypeInfo class.
public PixelTypeInfo(int bitsPerPixel, PixelAlphaRepresentation alpha)
Parameters
bitsPerPixel
intColor depth, in number of bits per pixel.
alpha
PixelAlphaRepresentationThe pixel alpha transparency behavior.
Properties
AlphaRepresentation
Gets the pixel alpha transparency behavior. null means unknown, unspecified.
public PixelAlphaRepresentation? AlphaRepresentation { get; }
Property Value
BitsPerPixel
Gets color depth, in number of bits per pixel.
public int BitsPerPixel { get; }