Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeIccRasterConverter

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

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[] required
width int required
height int required
profileBytes byte[] required
options OfficeIMO.Drawing.OfficeIccRasterConversionOptions? required
image OfficeIMO.Drawing.OfficeRasterImage? required