xpm files for scintilla
BlitzMax Forums/Brucey's Modules/xpm files for scintilla
| ||
Hi everyone, I just wanted to equip my autocompletion list with icons. I created some files and exported them with gimp to xpm. Afterwards I tried RegisterImage(1,LoadText(path_to_xpm_file) ). But scintilla is nagging. It seems like the xpm format is not good enough or whatever. Does anyone know a free program that can export to xpm files? Maybe a photoshop plugin? I was not able to find anything. What an irritating format. Brucey would it be possible to add SCI_REGISTERRGBAIMAGE(int type, const char *pixels) to wxMax? Would be much easier I think. Then I could use code similar to http://stackoverflow.com/questions/15366328/rgba-image-format-as-used-by-scintilla to convert a wxBitmap to the input scintilla needs. thx |
| ||
I'll have a look at what wxWidgets exposes through its scintilla API. |
| ||
Ah, I see. wxWidgets converts it to :RegisterImage (int type, const wxBitmap& bmp); I'll need to modify my code generator. |
| ||
Okay, I've changed RegisterImage to take a wxBitmap, and I've got the generator building MarkerDefineRGBAImage() and RegisterRGBAImage() methods. If you want to use the RGBAImage methods, you will need to call RGBAImageSetWidth() and RGBAImageSetHeight() first, to define the global size of your pixel data. |
| ||
Works very nice. thanks. |