CGraphCtx.SaveImagemethod
Saves the image to a file.
Syntax
FUNCTION SaveImage (BYREF wszFileName AS WSTRING, BYREF wszMimeType AS WSTRING) AS LONG
Parameters
| Name | Description | |
|---|---|---|
wszFileName | Absolute path name of the file. | |
wszMimeType | The mime type. "image/bmp" = Bitmap (.bmp) "image/gif" = GIF (.gif) "image/jpeg" = JPEG (.jpg) "image/png" = PNG (.png) "image/tiff" = TIFF (.tiff) |
Return value
If the method succeeds, it returns Ok, which is an element of the GDI+ Status enumeration.
If the method fails, it returns one of the other elements of the GDI+ Status enumeration.
Description
Saves the image to a file.
Reference
- Include file
CGraphCtx.inc - Defined in AfxNova/CGraphCtx.inc:1117
- Documented in Graphics/CGraphCtx Class.md
- Topic: CGraphCtx Class