Re: [gtk-list] Re: Image Libraries
- From: Juerg Tschirren <jtschirr engineering uiowa edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Image Libraries
- Date: Tue, 1 Feb 2000 22:03:26 -0600 (CST)
A simple question to this topic. If I have a C-array containing a
gray-level image (one byte per pixel, representing 256 gray shades),
what's the best way to bring this images into a GdkPixmap (or some other
GDK/GTK data structure so I can bring it somehow to the screen of a GTK
On Tue, 1 Feb 2000, Timothy M. Shead wrote:
> I appreciate the quick responses to my post. I agree that writing Yet
> Another image library is a real pain-you-know-where, but it looks
> increasingly inevitable to me, since it seems as if all of the libraries
> I've looked at place a strong emphasis on displaying images, and end up tied
> to the graphics subsystem. What's needed is a simple
> reader/framebuffer/color reduction/writer lib, totally independent of OS,
> that shares an interface with display libraries, toolkits, like GTK+, etc.
> I've also noted that many of the image libraries seem to use a plethora of
> external connections to pbmplus, libjpeg, libthis, libthat, etc. which
> falls under the category of "too clever" in my book ... it's code reuse,
> yes, but at the expense of maintainability. The hypothetical ideal library
> that I'm describing would make the individual image formats part of its
> source tree.
> Would anyone else be interested in such an animal? Nothing else seems to
> fit the bill, and I'd be willing to take it on, if it'll get used ...
> Timothy M. Shead
> > -----Original Message-----
> > From: David N. Welton [mailto:email@example.com]
> > Sent: Tuesday, February 01, 2000 5:50 PM
> > To: firstname.lastname@example.org
> > Subject: [gtk-list] Re: Image Libraries
> > On Tue, Feb 01, 2000 at 08:45:52PM -0500, Havoc Pennington wrote:
> > > "David N. Welton" <email@example.com> writes:
> > > > Imlib also allows you to save images back to disk. Gdk-pixbuf
> > > > does not, afaik.
> > > Good point, you're right.
> > > Another reason for the poster to write their own library here.
> > Hrmm, the two things that come to mind as solutions are:
> > 1) subclass gdk-pixbuf. But I don't know how easy that is to do, as
> > I'm not used to thinking about C as an object oriented language (I
> > have done nothing with gtk and gdk up untill now).
> > 2) add this functionality to gdk-pixbuf. It's really not that much
> > code.
> > Writing another library seems like a reinvention of the wheel.
> > Ciao,
> > --
> > David N. Welton, Developer, Linuxcare, Inc.
> > 415.354.4878 x241 tel, 415.701.7457 fax
> > firstname.lastname@example.org, http://www.linuxcare.com/
> > Linuxcare. At the center of Linux.
> > --
> > To unsubscribe: mail -s unsubscribe email@example.com <
> > /dev/null
] [Thread Prev