GdPicture.NET Reference Guide
SaveAsWBMP Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : SaveAsWBMP Method
GdPicture Image Identifier.
A string that contains the name of the file to which to save the image. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
Saves a GdPicture image as wbmp (Wireless Bitmap) image.
Syntax
'Declaration
 
Public Function SaveAsWBMP( _
   ByVal ImageID As Integer, _
   ByVal FilePath As String _
) As GdPictureStatus
public GdPictureStatus SaveAsWBMP( 
   int ImageID,
   string FilePath
)
public function SaveAsWBMP( 
    ImageID: Integer;
    FilePath: String
): GdPictureStatus; 
public function SaveAsWBMP( 
   ImageID : int,
   FilePath : String
) : GdPictureStatus;
public: GdPictureStatus SaveAsWBMP( 
   int ImageID,
   string* FilePath
) 
public:
GdPictureStatus SaveAsWBMP( 
   int ImageID,
   String^ FilePath
) 

Parameters

ImageID
GdPicture Image Identifier.
FilePath
A string that contains the name of the file to which to save the image. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
WBMP format is a format used on WAP (Wireless Application Protocol). You can load WBMP images into mobile device which supports WAP (ie: cellular phones). This format supports only 1BPP image.
Example
How to convert jpg file to wbmp file.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("image.jpg")
If imageId <> 0 Then
   oGdPictureImaging.SaveAsWBBMP (ImageID, "image.wbmp")
   oGdPictureImaging.ReleaseGdPictureImage (ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members