You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Saving GdPicture Image > SaveAsWBMP Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.SaveAsWBMP Method

Saves a GdPicture image as wbmp (Wireless Bitmap) image format.

C#
public GdPictureStatus SaveAsWBMP(
    int ImageID, 
    String FilePath
);
Visual Basic
Public Function SaveAsWBMP(
    ByVal ImageID As Integer, 
    ByVal FilePath As String
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
FilePath 
The complete file path to save a GdPicture image.  
Returns

A member of the GdPictureStatus enumeration.

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.

How to convert JPG file to WBMP file

Dim ImageID As Integer
 
ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("image.jpg")
If ImageID <> 0 Then
   oGdPictureImaging.SaveAsWBBMP (ImageID, "image.wbmp")
   oGdPictureImaging.ReleaseGdPictureImage (ImageID)
End If
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.