Struct ImagePixelFormat
Offers additional Information for ColorFormat.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fusee.Base.Common
Assembly: Fusee.Base.Common.dll
Syntax
public struct ImagePixelFormat
Constructors
ImagePixelFormat(ColorFormat)
Constructor requires ColorFormat to extract additional information.
Declaration
public ImagePixelFormat(ColorFormat colorFormat)
Parameters
Type | Name | Description |
---|---|---|
ColorFormat | colorFormat | The input ColorFormat. |
Properties
BytesPerPixel
Returns how many bytes make up one pixel. Example RGB = 3 Bytes, each channel consists of 1 byte.
Declaration
public readonly int BytesPerPixel { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ColorFormat
Pixel encoding enum.
Declaration
public ColorFormat ColorFormat { readonly get; }
Property Value
Type | Description |
---|---|
ColorFormat |
PixelChannel
Returns a PixelChannel for each channel of ColorFormat providing additional information about channel offset and bits per channel.
Declaration
public readonly IEnumerator<ImagePixelChannel> PixelChannel { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<ImagePixelChannel> |