Syntax
| window.ID.shape.load(Filename, paint, resize, transparentColor, polygon) |
Parameters
| STRING | Filename | Path to a .BMP file. JPG format is not supported.
| | BOOL | paint | Optional. Set this parameter to false if you need to draw something on the window before showing it.
| | BOOL | resize | Optional. If set to true, the window is resized to the size of the bitmap.
| | COLOR | transparentColor | Optional. Transparent color. When set, the specified color is transparent.
| | ARRAY | polygon | Optional. Vectorial mask to be added to the bitmap mask. |
Return value
No value is returned.
Description
Attrbiutes a non-rectangular, bitmap based shape to the window.
Important: As the bitmap is loaded from disk as each call, you should never use this function more than one time to save both CPU and memory.
The function window.ID.shape.from.ID do the same job but the image is loaded once.
When transparentColor is not set, the color of the pixel at the top-left corner of the bitmap is used as a transparent color. |
|