ImageUtils.GetJPEGOrientation Method
This function returns the orientation specific to a JPEG file. FlexCel will automatically rotate the images you add with AddImage (same as Excel does), but it will not rotate the images you enter in the headers/footers or if you replace an existing image. In those cases, you can use this method to know if the image needs to be rotated before entering it.
Syntax
Namespace: FlexCel.Core
public static TJpegOrientation GetJPEGOrientation(Byte[] data)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
data | Byte[] | Image data. |
Returns
Orientation of the JPEG file.