Click or drag to resize

DIBSaveAs Function

X#
Save the DIB to a file.

Namespace:  VOGUIClasses
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 FUNCTION DIBSaveAs(
	pWinBmp AS PTR,
	pszFName AS PSZ
) AS VOID
Request Example View Source

Parameters

pWinBmp
Type: Void*
Pointer to DIB data.
pszFName
Type: Psz
Name of the new DIB file.

Return Value

Type: 
Remarks
DIBSaveAs() saves the DIB as a file.
Examples
The following sample saves the image, test.jpg, as file, test.dib:
X#
1FUNC Start()
2LOCAL pDib    AS PTR
X#
1pDib := DIBCreateFromFile("c:\test.jpg")
2IF pDib = NULL_PTR
3DIBSaveAs(pDib, "c:\test.dib")
4DIBDelete(pDib)
5ENDIF
6WAIT
X#
1RETURN
See Also