GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / Rotate Method
GdPicture image identifier.
A member of the RotateFlipType enumeration.
Example





In This Topic
Rotate Method (GdPictureImaging)
In This Topic
Rotates clock-wise or flips a GdPicture image.
Syntax

Parameters

ImageID
GdPicture image identifier.
Rotation
A member of the RotateFlipType enumeration.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method requires the Image Documents component to run.

Example
Rotating a jpeg image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    // LoadInMemory parameter is set to true in order to be able to update the input file.
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg", true);
 
    // Rotate the image by 90°.
    gdpictureImaging.Rotate(imageID, RotateFlipType.Rotate90FlipNone);
    gdpictureImaging.SaveAsJPEG(imageID, "image.jpg", 75);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also