GdPicture.NET Reference Guide
RotateAngleBackColor Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : RotateAngleBackColor Method
GdPicture Image Identifier.
Angle of rotation in degrees.
Color of the background. A suitable color value can be obtained by using the ARGB() method.
Rotates clockwise a GdPicture by a specific angle and a custom back color.
Syntax
'Declaration
 
Public Function RotateAngleBackColor( _
   ByVal ImageID As Integer, _
   ByVal Angle As Single, _
   ByVal BackColor As Color _
) As GdPictureStatus
public GdPictureStatus RotateAngleBackColor( 
   int ImageID,
   float Angle,
   Color BackColor
)
public function RotateAngleBackColor( 
    ImageID: Integer;
    Angle: Single;
    BackColor: Color
): GdPictureStatus; 
public function RotateAngleBackColor( 
   ImageID : int,
   Angle : float,
   BackColor : Color
) : GdPictureStatus;
public: GdPictureStatus RotateAngleBackColor( 
   int ImageID,
   float Angle,
   Color BackColor
) 
public:
GdPictureStatus RotateAngleBackColor( 
   int ImageID,
   float Angle,
   Color BackColor
) 

Parameters

ImageID
GdPicture Image Identifier.
Angle
Angle of rotation in degrees.
BackColor
Color of the background. A suitable color value can be obtained by using the ARGB() method.

Return Value

A member of the GdPictureStatus enumeration.
Example
Rotating image 30.0 degrees with specifying the back color as green.
Dim oGdPictureImaging As New oGdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.RotateAngleBackColor(ImageID, 30.0, oGdPictureImaging.ARGB(0, 0, 255, 0))
   oGdPictureImaging.SaveAsPNG(ImageID, "output.png")
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
ARGB(Byte,Byte,Byte) Method