Signature:

dabo.ui.strToBmp(val, scale=None, width=None, height=None)

Description:

This can be either a path, or the name of a built-in graphic. If an adjusted size is desired, you can either pass a scale value (where 1.00 is full size, 0.5 scales it to 50% in both Height and Width), or you can pass specific height and width values. The final image will be a bitmap resized to those specs.

Returns:

A bitmap of the specified image, or None if an invalid image was specified.

Comments:

This is the heart of the simplification of image handling. It allows you to simply specify a file path for something like the Picture property of an dImage control, rather than having to manually read in the file and convert it from its native format to a display bitmap.

Parameters: