ObjectID =  panel .create  (  Filename ,  Width ,  Height  )  
                                     
Description :

This instruction creates a panel from an icon (PNL, GIF, PNG).

The panel is built by repeating blocks of pixels. Its rendering is therefore of a much higher standard than what would have been achieved using "icon.resize".


Parameters :

  • Path and filename to the correct icon file. The path can be an Internet address or a local (hard disk) address. Should the path be unspecified, Alambik will search for the file in the current directory of the current local hard disk.
  • Width of the panel, expressed in pixels.

    The width of the panel cannot be smaller than 2/3 of the width of the icon.
    For GIF and PNG, the width must be a multiple of 3.
  • Height of the panel, expressed in pixels.

    The height of the panel cannot be smaller than 2/3 of the height of the icon.
    For GIF and PNG, the height must be a multiple of 3.

Return Handle :

  • ObjectID of the panel.

Examples :