vcl-cximage-dot-tcxcustomimageproperties-44a0c963.md
Specifies if the image editor rotates an image based on EXIF metadata.
property ExifAutoRotation: TdxDefaultBoolean read; write; default bDefault;
| Type | Default | Description |
|---|---|---|
| TdxDefaultBoolean | bDefault | bDefaultThe TdxGPImage.DefaultImageExifAutoRotation class property value defines if the image editor rotates an image based on EXIF metadata.bTrueThe editor always rotates the displayed image if its rotation angle is defined in EXIF metadata.bFalseThe editor always ignores the displayed image’s rotation angle defined in EXIF metadata. |
In addition to ancillary tags and device-related settings, EXIF metadata can include information on effects and transformations applied to an image. DevExpress image editors[1] and containers can automatically apply an image rotation angle defined in EXIF metadata. The applied rotation angle does not affect the source image.
You can set the ExifAutoRotation property to bTrue or bFalse to explicitly enable or disable automatic image rotation based on EXIF metadata.
The following code example disables the global EXIF image rotation setting:
uses
dxGDIPlusClasses;
// ...
TdxGPImage.DefaultImageExifAutoRotation := False;
#include "dxGDIPlusClasses.hpp"
// ...
TdxGPImage::DefaultImageExifAutoRotation = false;
The ExifAutoRotation property’s default value is bDefault.
The default ExifAutoRotation property value indicates that the TdxGPImage.DefaultImageExifAutoRotation class property determines if the image editor rotates an image whose EXIF metadata defines a rotation angle.
Footnotes
See Also
TdxGPImage.ExifAutoRotation Property
TcxCustomImageProperties Class