PDA

View Full Version : WxRuby: Opening and Displaying PNG images on a window


kpeng1
July 25th, 2006, 12:12 PM
Hello,

I am still pretty new to wxwidgets and I am trying to learn as fast as possible.

Currently I am using wxruby and I want to build an application that would display all png images that are in its current directory as thumbnails and once a user clicks on one of these thumbnails another application would launch displaying a better resolution or larger version of the thumbnail image.

I have been looking at the Image, ImageList and PNGHandler classes, but I cannot seem to get anything to work. I cannot even declare a handler. Also, there is barely anything for the PNGHandler class.

sheefo
July 31st, 2006, 05:21 AM
It would take a lot to make that, especially if you have little knowledge of wxRuby. I have programmed a Map Editor for my Ruby-SDL game engine in wxRuby and it uses the Wx:: DC class the 'paint' images on the panel.

If it would help you I can send you my Map Editor application so you can have a look.

kpeng1
July 31st, 2006, 10:18 AM
Sheefo, if you could please send me the Map Editor application I would be so greatful. Thanks.

sheefo
August 1st, 2006, 06:45 AM
No problem. I'll get it ready and PM it to you soon.
I used VisualWx to make it in, it is Visual Ruby (incase you didn't know).

PS: If you want good Ruby stuff, I suggest visiting http://s14.invisionfree.com/Ruby_R_US. It is my friends forum, but he's busy now so I am a temp admin.