Documentation / Marblecore Imaging / Enumerations / Rotation
Rotation enumeration
Specifies the rotation method which is used. When an image is rotated the resulting image will be slightly (depending on the rotating angle) bigger than the original. The values below specify how the engine should handle this image growth.
If you use the ATL COM version of the library, you can supply the string value (the name of the value) or the number value (as listed in the table below) as the enumeration value. If you use the Class Library, the enumeration is available as an enum object with the name MarblecoreImagingRotation which contains all the available values.
Values
Name | Value | Description |
Fit | 0 | Rotates the image with expanding and resizes the result image to fit within the original width and height while maintaining aspect ratio |
Resize | 1 | Rotates the image with expanding and resizes the result image to the original width and height |
Expand | 2 | Rotates the image and expands the width and height to accomodate the rotated image |
Crop | 3 | Rotates the image and crops the result image to the orginal width and height |
Mask | 4 | Rotates the image using a mask effect for filling out the gaps (expanding will occur) |
See also
Rotate