March 28, 2024

Dynamic Windows Function [dw_pixmap_new_from_file]

Syntax

HPIXMAP dw_pixmap_new_from_file(HWND handle, char *filename)

Parameters

HWND handle: Window handle the pixmap is associated with.
char *filename: Name of the file, omit extention to have DW pick the appropriate file extension. (BMP on OS/2 or Windows, XPM on Unix, PNG on Mac)

Returns

HPIXMAP A handle to a pixmap or NULL on failure.

Description

Creates a pixmap from a file.