Class
OfficeDocumentImageDimensions
OfficeIMO.Reader
Reads pixel dimensions from common encoded image formats without decoding pixels.
Inheritance
- object
- OfficeDocumentImageDimensions
Methods
public static bool TryReadPixelDimensions(byte[] payload, string? mediaType, out int width, out int height) #Attempts to read encoded image dimensions from PNG, JPEG, GIF, or BMP bytes.
Parameters
- payload byte[]
- mediaType string?
- width int
- height int
Returns
bool