Class
OfficeImagePngConverter
OfficeIMO.Drawing
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[]?
- pngBytes byte[]
Returns
boolTryConvertToPng 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[]?
- pngBytes byte[]
Returns
boolpublic 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[]?
- options OfficeIMO.Drawing.OfficeRasterDecodeOptions?
- pngBytes byte[]
- decodeInfo OfficeIMO.Drawing.OfficeRasterDecodeInfo
Returns
bool