Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / ConvertTo32BppRGB Method
GdPicture image identifier.

In This Topic
    ConvertTo32BppRGB Method (GdPictureImaging)
    In This Topic
    Converts a GdPicture image to a 32-bit RGB color image. 8 bits each are used for the red, green, and blue components, and the last 8 bits are neglected.
    Public Function ConvertTo32BppRGB( _
       ByVal ImageID As Integer _
    ) As GdPictureStatus
    public GdPictureStatus ConvertTo32BppRGB( 
       int ImageID
    public function ConvertTo32BppRGB( 
        ImageID: Integer
    ): GdPictureStatus; 
    public function ConvertTo32BppRGB( 
       ImageID : int
    ) : GdPictureStatus;
    public: GdPictureStatus ConvertTo32BppRGB( 
       int ImageID
    GdPictureStatus ConvertTo32BppRGB( 
       int ImageID


    GdPicture image identifier.

    Return Value

    A member of the GdPictureStatus enumeration.
    Converting a selected image to a 32-bit RGB color image and saving the result into a PNG file.
    using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
        // Open an image file. An empty string allows the control to prompt for selecting a file.
        int imageID = gdpictureImaging.CreateGdPictureImageFromFile("");
        // Convert image to 32-bit RGB color format. Any transparency will be lost.
        gdpictureImaging.SaveAsPNG(imageID, "output.png");
        // Release used resources.
    See Also