General XMetaL Discussion

  • pooh2583

    Merging Bitmap images

    Participants 1
    Replies 2
    Last Activity 10 years ago


    In xmetals icons folder I got to see there are many icons merged in a single .bmp image and they can be refered as(1, 1),(1.2) etc., I would like to know how to merge those icons together in a one .bmp image?

    Please Reply,



    Derek Read

    Reply to: Merging Bitmap images

    Short answer:
    Any image editing tool that can save to BMP format will let you do this.

    The BMP files are standard Windows BMP files, except that they must be exactly the size of the ones we install and contain 10 icons each (at most) that are exactly 18 pixels wide x 16 pixels high. The grey used in the images we ship is treated as transparent by XMetaL Author, so match it if you want anything to be transparent. You can use this file as a template: C:Program FilesXMetaL 7.0AuthorIconsblankrow.bmp

    If you add a new folder you will need to modify the icons.ini file so that XMetaL Author will load the BMP files you have created. Maximum number of BMP files in a folder is 8. I can't recall exactly what the absolute maximum is in total, but there is a limit so you can really only add a couple of folders.

    Icons are loaded at XMetaL Author startup so you need to restart after making any changes. Note that there is no way to distribute these as part of a document-level customization, the application's installation needs to be modified.

    To assign an image to a toolbar button with script, use the API property FaceId and the method MakeFaceId() — see the Programmers Guide.



    Reply to: Merging Bitmap images

    Thyank you for a reply


  • You must be logged in to reply to this topic.

Lost Your Password?