Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
wxImage components
rcoll:
I needed wxImage and wxImageList components for a recent project, and I wanted to define the images in wxSmith, and have the image files compiled directly into the source code.
So I created a new plugin for wxSmith.
This plugin provides wxImage and wxImageList as components for wxSmith, and allows the images to be selected at design-time, and to compile the images directly into the source code file. This allows you to distribute your program without the need for an external image file or external resource file.
The images are all stored internally as XPM image files. The images may be stored directly in the source code C++ file, or used as a "#include" file.
The wxImage component is normally used to hold small-to-medium sized images, but is capable of storing any size image. However, larger images (for example 400 x 400 pixels) will show a noticible slowing of the wxSmith editor.
The component wxImageList has an integrated image-list-editor dialog that lets the programmer to add or delete images from an image-list, and to set an optional transparent color for added images.
For more info, see the Readme.txt file inside the zip.
This code has been developed and tested in MS Windows, but I think it should work under other OS's with few changes.
As always, I welcome any suggestions for improvement. Feel free to use it (or abuse it) as you see fit.
Ringo
[attachment deleted by admin]
killerbot:
thanks, sounds great, will try it out.
Can it also be used for a simple icon creation ?
rcoll:
--- Quote from: killerbot on April 19, 2009, 09:21:45 am ---thanks, sounds great, will try it out.
Can it also be used for a simple icon creation ?
--- End quote ---
No, sorry, this editor just adds or removes bitmaps from an image-list.
However ... funny you should mention it. I'm working on an icon editor to add to wxSmith for part of my current project. When I have it working, I'll upload it and you can try it out.
Ringo
JGM:
really cool your work makes codeblocks even a more complete IDE
Ganbito:
It sounds great!
I've downloaded it to my Ubuntu, for give it a try (a fast try). As it is windows-only, I've created a project for build it on linux and tried to solve the errors I've found, but couldn't make it to work at this first attemp. I will give another try soon.
By the way, have you any plans to support linux (early) so I have only wait a little? :D
Navigation
[0] Message Index
[#] Next page
Go to full version