Thread: [UFO-devel] Active Development? - Creating an image viewer.
Status: Beta
Brought to you by:
schmidtjf
From: <hv...@st...> - 2007-04-29 20:30:43
|
Hallo Johannes & others, Just wondering if there's still active development here. I'm using libUFO for a relatively simple Computer Science Project. It's a program which processes images and then turns them into various Mosaics. I noticed the earlier response to Olga, which had an attatchment "image.cpp" which had a simple implimentation of an image display function using UImageIO - this is the route which I had already decided to take! I would really appreciate it if you could send me a copy of image.cpp, I'd be curious to see it, maybe avoid some mistakes. Also, if libUFO is no longer actively developed, is it because you've began working on another OpenGL Widget Toolkit? I'd love to hear what alternatives are out there. Mit freundlichen Gruessen, Andrew PS. Ich spreche auch Deutsch falls das ihnen lieber ist! :) |
From: Johannes S. <sch...@us...> - 2007-05-08 10:18:21
|
Hi Andrew, Am Sonntag, 29. April 2007 22:30 schrieb hv...@st...: > Just wondering if there's still active development here. I have to admit that active development ... ahem ... kinda stopped. It's simply that I do not have the time anymore for a real development. But patches and bug reports are still welcome and I try to implement them a= s=20 soon as possible. But if there are others who want to join the development, please don't=20 hesitate to ask. > I'm using libUFO=20 > for a relatively simple Computer Science Project. It's a program which > processes images and then turns them into various Mosaics. I noticed the > earlier response to Olga, which had an attatchment "image.cpp" which had a > simple implimentation of an image display function using UImageIO - this > is the route which I had already decided to take! > > I would really appreciate it if you could send me a copy of image.cpp, I'd > be curious to see it, maybe avoid some mistakes. Hmm, perhaps if you describe your problem a little bit more in detail, I co= uld=20 help ... > Also, if libUFO is no longer actively developed, is it because you've > began working on another OpenGL Widget Toolkit?=20 Unfortunately not. But I've written an OpenGL backend for Cairo, the vector drawing API used i= n=20 Mozilla, GTK, etc. That might be interesting, too. I am trying to get that approved by the cairo maintainers to make it availa= ble=20 for all. > I'd love to hear what alternatives are out there. I haven't found any yet. Regards, Johannes > Mit freundlichen Gruessen, > Andrew > > PS. Ich spreche auch Deutsch falls das ihnen lieber ist! :) =46=FCr die Mailing Liste ist Englisch wohl geeigneter, aber ich spreche au= ch=20 gerne Deutsch :) |
From: Andrew H. <hv...@st...> - 2007-05-09 02:34:46
|
> Hi Andrew, > > Am Sonntag, 29. April 2007 22:30 schrieb hv...@st...: > >> Just wondering if there's still active development here. >> > > I have to admit that active development ... ahem ... kinda stopped. > It's simply that I do not have the time anymore for a real development. > But patches and bug reports are still welcome and I try to implement them as > soon as possible. > > But if there are others who want to join the development, please don't > hesitate to ask. > > Hmm, I don't think I'm qualified to join development, but I'd be happy to contribute to the documentation. I could write some things up, especially relating to layout and theme options and image/icon display. I mean, even pre-1.0 libUFO is really useful, some more clear specific examples would complement the project well. Thanks for spending your time to write such an awesome project! >> I'm using libUFO >> for a relatively simple Computer Science Project. It's a program which >> processes images and then turns them into various Mosaics. I noticed the >> earlier response to Olga, which had an attatchment "image.cpp" which had a >> simple implimentation of an image display function using UImageIO - this >> is the route which I had already decided to take! >> >> I would really appreciate it if you could send me a copy of image.cpp, I'd >> be curious to see it, maybe avoid some mistakes. >> > > Hmm, perhaps if you describe your problem a little bit more in detail, I could > help ... > Certainly! I'm honestly just beginning programming, so please excuse all the questions (and perhaps also dumb questions!). I'm just not sure how to go about getting this image file to load, maybe you could just write out a line of code that shows how to actually go about displaying an image using libUFO? As far as I could tell from the specs. putting it as an icon of a label using UGL_Image should work, but I always get a compile error. For this program I need to both be loading images from files and piping them from the main program to the UI as a flat array in RGBA format (I think this should work with libUFO's UImageIO class). void createWorkWindow(URootPane * root) { UInternalFrame * iframeWorkWindow = new UInternalFrame(currentFile); // we need to set the size and position explicitely as // internal frames panel does not have layout managers iframeWorkWindow->setBounds(70, 70, 631, 500); iframeWorkWindow->setLocation(40, 40); iframeWorkWindow->setResizable(true); UButton * imageBuffer = new UButton(); UImage * image = new UGL_Image(new UImageIO("workspaceBackground.tga")); imageBuffer->setIcon(new UImageIcon(image)); iframeWorkWindow->add(imageBuffer); root->addFrame(iframeWorkWindow); } |