Class
OfficeIccRasterConverter
OfficeIMO.Drawing
Converts bounded, tightly packed 8-bit RGB, CMYK, or three-to-eight-channel device samples to opaque sRGB.
Inheritance
- object
- OfficeIccRasterConverter
Remarks
This API accepts raw device samples and ICC bytes supplied by the caller. It does not extract metadata from encoded images, alter the source buffer, or change image optimizer metadata reports. Alpha, planar samples, higher bit depths, and implicit device-color conversion are outside this contract.
Methods
public static OfficeIccRasterConversionStatus TryConvertToSrgb(byte[] deviceSamples, int width, int height, byte[] profileBytes, OfficeIccRasterConversionOptions? options, out OfficeRasterImage? image) #Attempts one complete conversion, returning a typed rejection instead of partial pixels.
Parameters
- deviceSamples byte[]
- width int
- height int
- profileBytes byte[]
- options OfficeIMO.Drawing.OfficeIccRasterConversionOptions?
- image OfficeIMO.Drawing.OfficeRasterImage?