GdPicture.NET Reference Guide
ConvertTo16BppRGB555 Method (GdPictureImaging)
Example 





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

Parameters

ImageID
GdPicture Image Identifier.

Return Value

A member of the GdPictureStatus enumeration.
Example
Converting the image to a 16-bit per pixel image with 5 bits used for each channel and the last bit is neglected.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.ConvertTo16BppRGB555(ImageID)
   oGdPictureImaging.SaveAsPNG(ImageID, "output.png")
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members