SKColorSpaceIccProfile.Create Method
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.
Overloads
| Name | Description |
|---|---|
| Create(SKData) |
Creates a new SKColorSpaceIccProfile from the specified data. |
| Create(Byte[]) |
Creates a new SKColorSpaceIccProfile from the specified byte array. |
| Create(ReadOnlySpan<Byte>) |
Creates a new SKColorSpaceIccProfile from the specified span of bytes. |
| Create(IntPtr, Int64) |
Creates a new SKColorSpaceIccProfile from the specified pointer and length. |
Create(SKData)
Creates a new SKColorSpaceIccProfile from the specified data.
public static SkiaSharp.SKColorSpaceIccProfile Create(SkiaSharp.SKData data);
Parameters
- data
- SKData
The ICC profile data.
Returns
A new SKColorSpaceIccProfile, or null if the data is empty or invalid.
Applies to
Create(Byte[])
Creates a new SKColorSpaceIccProfile from the specified byte array.
public static SkiaSharp.SKColorSpaceIccProfile Create(byte[] data);
Parameters
- data
- Byte[]
The ICC profile data as a byte array.
Returns
A new SKColorSpaceIccProfile, or null if the data is empty or invalid.
Applies to
Create(ReadOnlySpan<Byte>)
Creates a new SKColorSpaceIccProfile from the specified span of bytes.
public static SkiaSharp.SKColorSpaceIccProfile Create(ReadOnlySpan<byte> data);
Parameters
- data
- ReadOnlySpan<Byte>
The ICC profile data as a span of bytes.
Returns
A new SKColorSpaceIccProfile, or null if the data is empty or invalid.
Applies to
Create(IntPtr, Int64)
Creates a new SKColorSpaceIccProfile from the specified pointer and length.
public static SkiaSharp.SKColorSpaceIccProfile Create(IntPtr data, long length);
Parameters
- data
- IntPtr
A pointer to the ICC profile data.
- length
- Int64
The length of the data in bytes.
Returns
A new SKColorSpaceIccProfile, or null if the data is invalid or length is less than or equal to zero.