Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeDocumentImageDimensions

Namespace OfficeIMO.Reader
Assembly OfficeIMO.Reader.Core
Source revision e31b305980e3 with working tree changes
Modifiers static

Reads pixel dimensions from common encoded image formats without decoding pixels.

Inheritance

  • Object
  • OfficeDocumentImageDimensions

Methods

public static Boolean TryReadPixelDimensions(Byte[] payload, String? mediaType, out Int32 width, out Int32 height) #
Returns: Boolean

Attempts to read encoded image dimensions from PNG, JPEG, GIF, or BMP bytes.

Parameters

payload System.Byte[] requiredposition: 0
mediaType System.String? requiredposition: 1
width System.Int32 requiredposition: 2
height System.Int32 requiredposition: 3