GdPicture.NET Reference Guide
ConvertTo24BppRGB Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : ConvertTo24BppRGB Method
GdPicture Image Identifier.
Converts a GdPicture image to a 24-bit color image. 8 bits each are used for the red, green, and blue components.
Syntax
'Declaration
 
Public Function ConvertTo24BppRGB( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus ConvertTo24BppRGB( 
   int ImageID
)
public function ConvertTo24BppRGB( 
    ImageID: Integer
): GdPictureStatus; 
public function ConvertTo24BppRGB( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus ConvertTo24BppRGB( 
   int ImageID
) 
public:
GdPictureStatus ConvertTo24BppRGB( 
   int ImageID
) 

Parameters

ImageID
GdPicture Image Identifier.

Return Value

A member of the GdPictureStatus enumeration.
Example
Converting the image to a 24-bit per pixel image.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.ConvertTo24BppRGB(ImageID)
   oGdPictureImaging.SaveAsPNG(ImageID, "output.png")
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members