PeachImage

PeachImage.Image

Image.ConvertToSrgb() Method

Color-manages this image using its own embedded ICC profile (GetIccColorProfile()), producing a new Rgba32Image — the high-level convenience over ConvertToSrgb(ReadOnlySpan<byte>, Span<byte>, int, Nullable<IccRenderingIntent>, bool) for the common case of “just color-manage this image for me.” A missing or unusable embedded profile is a normal, expected outcome (most images don’t carry one) rather than an error: when there’s nothing to convert — no usable profile, its channel count doesn’t match this image’s own pixel format, or PixelFormat isn’t one ICC conversion applies to (it’s already Rgba32, for instance) — this same instance is returned unchanged rather than throwing or allocating a needless copy, the same “may return this” contract Resize(int, int, ResizeOptions) documents (see its own remarks for the disposal implications of that).

public PeachImage.Image ConvertToSrgb();

Returns

Image