I need to create a MDL resource (.r) from a Windows icon (.ico) file OR any other way to edit an icon, but can't seem to figure it out. The resource I need is in this so it can be compiled by the MDL Resource Compiler and placed in a DItem_ToolBoxRsc. This is the format I need:
IconCmdSmallRsc ICONCMDID_POLYGON = { 23, 23, FORMAT_MONOBITMAP, BLACK_INDEX, "", { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x02, 0x80, 0x00, 0x08, 0x80, 0x00, 0x20, 0x80, 0x00, 0x80, 0x80, 0x02, 0x00, 0x80, 0x08, 0x00, 0x80, 0x20, 0x00, 0x80, 0x80, 0x00, 0x81, 0x00, 0x01, 0x02, 0x00, 0x02, 0x04, 0x00, 0x04, 0x08, 0x00, 0x08, 0x10, 0x00, 0x10, 0x20, 0x00, 0x20, 0x40, 0x00, 0x40, 0x80, 0x00, 0x81, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } };
I can import it into the Customize dialog as shown below, but can't export to MDL Resource Format.
Warren
Hi Warren,
a few notes:
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point