This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This macro converts a 24x24 8-bit or 24-bit image to a tool | |
// macro icon string. Includes a few examples. | |
macro "Convert Image to Tool Icon 24..." { | |
requires("1.53c"); // for the extended hex feature | |
if (!(bitDepth==8 || bitDepth==24) || getWidth>24 || getHeight>24) | |
exit("This macro requires an 8-bit 24x24 image"); | |
Dialog.create("Image 2 Tool"); | |
Dialog.addString("Tool name", "myTool"); |