GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / SaveAsPBM 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.





In This Topic
SaveAsPBM Method (GdPictureImaging)
In This Topic
Saves a GdPicture image as Portable Bitmap image.
Syntax
'Declaration
 
Public Function SaveAsPBM( _
   ByVal ImageID As Integer, _
   ByVal FilePath As String _
) As GdPictureStatus
public GdPictureStatus SaveAsPBM( 
   int ImageID,
   string FilePath
)
public function SaveAsPBM( 
    ImageID: Integer;
    FilePath: String
): GdPictureStatus; 
public function SaveAsPBM( 
   ImageID : int,
   FilePath : String
) : GdPictureStatus;
public: GdPictureStatus SaveAsPBM( 
   int ImageID,
   string* FilePath
) 
public:
GdPictureStatus SaveAsPBM( 
   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
This method works only with 1-bit, 8-bit grayscale and 24-bit images. Use the IsPixelFormatHasAlpha(ImageID) method to check if a GdPicture image has an alpha component.

This method requires the Image Documents component to run.

See Also