Re: [gtk-list] GDK vs. ImLib vs. Gdk/ImLib
- From: raster redhat com
- To: gtk-list redhat com
- Subject: Re: [gtk-list] GDK vs. ImLib vs. Gdk/ImLib
- Date: Thu, 26 Feb 1998 19:44:43 -0500 (EST)
On 26 Feb, Square Avenue shouted:
->
-> Thanks to those who've replied to my earlier message; they were a great
-> help.
->
-> I've got two questions now: One is that I'm trying to create a fractal
-> widget inherited from the drawing_area widget, but someone mentioned to me
-> about the pitfalls of color allocation. Is there something more robust
-> than the drawing_area widget (like something from ImLib) that will easily
-> let me say "Okay I want to put color ###### here at this point"? I looked
-> at ImLib's documentation a little bit and my impression is that 1)
-> everything is 24 bit and 2) you don't have to worry about color allocation
-> because ImLib takes care of that for you. Would that be a good solution
-> for true-color fractal rendering? And would a GTK/ImLib mix in my code be
-> detrimental?
I see you have 2 choices. 1 You can use Imlib, 2. you can write your
own colro allocation, and XImage / dithering routines for 1,4,8,15,16,24
and 32 bpp. :) several parts of GNOME currently require Imlib, so it
won't be unusual to use Imlib.
-> My second question has to deal with threads. Fractals are tricky to
-> implement in a window manager environment because you have to set aside
-> some time for the widgets to draw them selves as the image is rendering
-> (which can take anywhere from a few seconds to several months (years if
-> you're a real fractal enthusiast :) ). This led me to threads, which is
-> another thing that is tricky to implement in a window manager environment.
-> Damned if you do, damned if you don't. Has anybody had any success
-> combining operations that take a long time in a GTK program with GTK
-> itself?
->
-> Any helpful hints appreciated. :)
->
-> - Dave
->
-> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-> Name: David Finton | "All free software is in Beta. If
-> Email: dfinton@d.umn.edu | there is a free software package
-> Web: http://www.d.umn.edu/~dfinton | bearing the version number 1.0 or
-> | greater, it is obsolete and must
-> | be replaced immediately by a
-> | newer, better Beta version."
-> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
->
->
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com /\___ /\ ___/||\___ ____/|/\___ raster@redhat.com
Carsten Haitzler | _ //__\\ __||_ __\\ ___|| _ / Red Hat Advanced
218/21 Conner Drive || // __ \\_ \ | | \ _/_|| / Development Labs
Chapel Hill NC 27514 USA ||\\\/ \//__/ |_| /___/||\\ 919 547 0012 ext 282
+1 (919) 929 9443, 801 4392 For pure Enlightenmenthttp://www.rasterman.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]