Author Topic: Help with creating images  (Read 3909 times)

Offline gReaen

  • Multiple posting newcomer
  • *
  • Posts: 18
Help with creating images
« on: April 04, 2008, 08:36:47 pm »
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?

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Help with creating images
« Reply #1 on: April 04, 2008, 09:10:31 pm »
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.

Offline gReaen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Help with creating images
« Reply #2 on: April 05, 2008, 04:07:16 am »
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...

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Help with creating images
« Reply #3 on: April 05, 2008, 11:25:47 am »
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.

Offline gReaen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Help with creating images
« Reply #4 on: April 05, 2008, 11:34:16 am »
Ok.. Thanks for the suggestions. I'll try them.