SKImageInfo.WithColorType(SKColorType) Method

Definition

Creates a new SKImageInfo with the same properties as this SKImageInfo, but with the specified color type.

public SkiaSharp.SKImageInfo WithColorType (SkiaSharp.SKColorType newColorType);
public readonly SkiaSharp.SKImageInfo WithColorType (SkiaSharp.SKColorType newColorType);

Parameters

newColorType
SKColorType

The color type.

Returns

Returns the new SKImageInfo.

Applies to