API Reference
Class
OfficeImageOrientationNormalizer
Reads and normalizes embedded JPEG EXIF and classic-TIFF orientation without platform imaging dependencies.
Inheritance
- Object
- OfficeImageOrientationNormalizer
Methods
TryNormalizeToPng 2 overloads
public static Boolean TryNormalizeToPng(Byte[] imageBytes, out Byte[] normalizedPng, out OfficeImageInfo normalizedInfo) #Returns:
BooleanConverts an explicitly rotated or mirrored JPEG/TIFF source to orientation-neutral PNG bytes. Returns false when orientation is absent/default or the managed decoder cannot normalize the payload.
Parameters
- imageBytes System.Byte[]
- normalizedPng System.Byte[]@
- normalizedInfo OfficeIMO.Drawing.OfficeImageInfo@
public static Boolean TryNormalizeToPng(Byte[] imageBytes, Boolean applyEmbeddedOrientation, out Byte[] normalizedPng, out OfficeImageInfo normalizedInfo) #Returns:
BooleanConverts an explicitly oriented JPEG/TIFF source to PNG while either applying or ignoring its metadata. This supports static renderers that implement CSS image-orientation consistently across outputs.
Parameters
- imageBytes System.Byte[]
- applyEmbeddedOrientation System.Boolean
- normalizedPng System.Byte[]@
- normalizedInfo OfficeIMO.Drawing.OfficeImageInfo@
public static Boolean TryRead(Byte[] imageBytes, out OfficeImageOrientation orientation) #Returns:
BooleanAttempts to read an explicit non-default or default orientation from JPEG EXIF or classic TIFF bytes.
Parameters
- imageBytes System.Byte[]
- orientation OfficeIMO.Drawing.OfficeImageOrientation@
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object