SetPanelImage panel,file$
Parameters
|
panel - panel gadget file$ - path of the image file to display |
Description
|
Tiles an image across a panel's background. The image is drawn repeatedly from the panel's top-left corner until the whole panel is covered - a texture-style backdrop for a launcher, or a checkerboard behind a sprite preview. If the panel is smaller than the image you simply see the top-left portion. BMP files load directly, and any other format Windows can decode (PNG, JPEG, GIF, TIFF) works too. A file that cannot be loaded stops with a runtime error. Setting an image replaces any solid colour from SetPanelColor, and vice versa. Gadgets placed on the panel draw on top of the image as usual. Requires Extended mode. See also: SetPanelColor, CreatePanel, LoadIconStrip. |
Index