General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Merging Bitmap images
-
pooh2583 February 4, 2013 at 10:20 am
Merging Bitmap images
February 4, 2013 at 10:20 amParticipants 1Replies 2Last Activity 10 years agoHi,
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,
Regards
Derek Read February 4, 2013 at 6:22 pm
Reply to: Merging Bitmap images
February 4, 2013 at 6:22 pmShort answer:
Any image editing tool that can save to BMP format will let you do this.Details:
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.bmpIf 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.
-
AuthorPosts
- You must be logged in to reply to this topic.