GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / RotateAngle Method
GdPicture image identifier.
Angle of rotation in degrees.
Example





In This Topic
RotateAngle Method (GdPictureImaging)
In This Topic
Rotates clockwise a GdPicture by a specific angle.
Syntax
'Declaration
 
Public Function RotateAngle( _
   ByVal ImageID As Integer, _
   ByVal Angle As Single _
) As GdPictureStatus
public GdPictureStatus RotateAngle( 
   int ImageID,
   float Angle
)
public function RotateAngle( 
    ImageID: Integer;
    Angle: Single
): GdPictureStatus; 
public function RotateAngle( 
   ImageID : int,
   Angle : float
) : GdPictureStatus;
public: GdPictureStatus RotateAngle( 
   int ImageID,
   float Angle
) 
public:
GdPictureStatus RotateAngle( 
   int ImageID,
   float Angle
) 

Parameters

ImageID
GdPicture image identifier.
Angle
Angle of rotation in degrees.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method requires the Image Documents component to run.

Example
Rotating a jpeg image by 75°.
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 75°.
    gdpictureImaging.RotateAngle(imageID, 75);
    gdpictureImaging.SaveAsJPEG(imageID, "image.jpg", 75);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also