User forums > Help

Help with creating images

(1/1)

gReaen:
Hello,
This question is too simple but i've been searching the web on how to do it.. I want to know how to create bitmap images for toolbar and icons using Code::Blocks. Is there any tool for that or should we write the values for the whole bitmap? I saw the wxBitmap class but how can we decide on the array values. Can someone please help?

DrewBoo:
Adding images for a toolbar is different for each library that is supplying the toolbar.  Is this a wxWidgets toolbar?  GTK?  Qt?

Whatever library you are using, you'll probably find that it involves drawing the image in your favorite drawing program and saving it in a format that the library understands.

gReaen:
It is a wxWidgets toolbar. I'm doing a wxWidgets application which should have a toolbar with customized icons. Can you please explain what a drawing application is? Can it be stored in a general .bmp format such as in MS Paint and used? I have seen that VC++ offers a place to draw the icons and images within its IDE, so wanted to know if anything similar is available in CB...

Jenna:
No there is no tool emebedded in C::B afaik.
But you can use the tools menu to create a menuentry that calls for example MS Paint.
As you wrote, you have allready found wxBitmap. So a look in the wxWidgets manual would show the formats you can use.
Windows Bitmap is one of them, but newer MS Paint's also can save in .png-format what's much smaller.

gReaen:
Ok.. Thanks for the suggestions. I'll try them.

Navigation

[0] Message Index

Go to full version