Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeImagePngConverter

OfficeIMO.Drawing

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

Shared dependency-free conversion helpers for raster formats supported by OfficeIMO.Drawing.

Inheritance

  • object
  • OfficeImagePngConverter

Methods

public static bool TryConvertDibToPng(byte[]? dibBytes, out byte[] pngBytes) #

Attempts to convert an RTF-style raw DIB payload to PNG bytes.

Parameters

dibBytes byte[]? required
pngBytes byte[] required

Returns

bool
TryConvertToPng 2 overloads
public static bool TryConvertToPng(byte[]? imageBytes, out byte[] pngBytes) #

Attempts to convert a Drawing-supported raster payload to PNG bytes.

Parameters

imageBytes byte[]? required
pngBytes byte[] required

Returns

bool
public static bool TryConvertToPng(byte[]? imageBytes, OfficeRasterDecodeOptions? options, out byte[] pngBytes, out OfficeRasterDecodeInfo decodeInfo) #

Attempts to convert a selected static raster frame to PNG with typed loss evidence.

Parameters

imageBytes byte[]? required
options OfficeIMO.Drawing.OfficeRasterDecodeOptions? required
pngBytes byte[] required
decodeInfo OfficeIMO.Drawing.OfficeRasterDecodeInfo required

Returns

bool