SKColorTable Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
The Index8 color type and color table is no longer supported.
Holds a premultiplied color table for indexed 8-bit bitmaps.
public class SKColorTable : SkiaSharp.SKObject
[System.Obsolete("The Index8 color type and color table is no longer supported.")]
public class SKColorTable : SkiaSharp.SKObject
- Inheritance
- Attributes
Remarks
This class is used to represent a color lookup table for indexed bitmap images. The table can contain up to MaxLength (256) colors (8 bits). The colors are stored are premultiplied 32-bit colors.
Constructors
SKColorTable() |
Creates a new, empty color table with 256 empty elements. |
SKColorTable(Int32) |
Creates a color table with the specified number of elements, with empty colors. |
SKColorTable(SKColor[], Int32) |
Creates a color table with the provided unpremultiplied colors, but only consumes the first count elements from the colors array. |
SKColorTable(SKColor[]) |
Creates a color table with the provided unpremultiplied colors, up to MaxLength (256) colors can be provided. |
SKColorTable(SKPMColor[], Int32) |
Creates a color table with the provided premultiplied colors, but only consumes the first count elements from the colors array. |
SKColorTable(SKPMColor[]) |
Creates a color table with the provided premultiplied colors, up to MaxLength (256) colors can be provided. |
Fields
MaxLength |
Gets the maximum number of colors in the color lookup table. |
Properties
Colors |
Gets a copy of the premultiplied colors in the color table. |
Count |
Gets the number of colors in the lookup table. |
Handle |
Gets or sets the handle to the underlying native object. (Inherited from SKObject) |
IgnorePublicDispose |
Gets or sets a value indicating whether the call the public Dispose() should be no-op. (Inherited from SKNativeObject) |
IsDisposed |
Gets or sets a value indicating whether the object has already been disposed. (Inherited from SKNativeObject) |
Item[Int32] |
Gets the premultiplied color at the specified index. |
OwnsHandle |
Gets a value indicating whether this object should destroy the underlying native object. (Inherited from SKObject) |
UnPreMultipledColors |
Gets a copy of the unpremultiplied colors in the color table. |
Methods
Dispose() |
Releases all resources used by this SKNativeObject. (Inherited from SKNativeObject) |
Dispose(Boolean) |
Releases the unmanaged resources used by the SKColorTable and optionally releases the managed resources. |
DisposeInternal() |
Triggers a dispose, ignoring the value of IgnorePublicDispose. (Inherited from SKNativeObject) |
DisposeManaged() |
Implemented by derived SKObject types to destroy any managed objects. (Inherited from SKObject) |
DisposeNative() |
Implemented by derived SKObject types to destroy any native objects. (Inherited from SKObject) |
DisposeUnownedManaged() | (Inherited from SKObject) |
GetUnPreMultipliedColor(Int32) |
Returns the unpremultiplied color at the specified index. |
ReadColors() |
Returns an unmanaged pointer to the color lookup table. |