PeachImage

PeachImage.IccColorProfile

IccColorProfile(ReadOnlySpan<byte>) Constructor

Parses profileBytes as an ICC profile.

public IccColorProfile(System.ReadOnlySpan<byte> profileBytes);

Parameters

profileBytes System.ReadOnlySpan<System.Byte>

Exceptions

IccProfileException
profileBytes is too short, malformed, or resolves to a device color space or transform PeachImage’s ICC engine doesn’t support (see DataColorSpace’s Unknown case for what’s supported). Use TryCreate(ReadOnlySpan<byte>, IccColorProfile) instead if this is an expected, common outcome for your input rather than an error.