GdPicture.NET Reference Guide
ConvertTo32BppPARGB Method (GdPictureImaging)
Example 





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

Parameters

ImageID
GdPicture Image Identifier.

Return Value

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

Reference

GdPictureImaging Class
GdPictureImaging Members