Allocating a lot of colors
- From: Lokesh Setia <lsetia78 yahoo com>
- To: gtk-list gnome org
- Subject: Allocating a lot of colors
- Date: Thu, 21 Jun 2001 12:22:53 +0530
Hello,
I'm writing a Image processing application, in which I need to show
intermediate results of my calculations as an image in a window, nothing
more.
First of all, I will like to ask whether drawing_area widget with a
backing pixmap is the best choice for this? I will have to call
gdk_draw_point{s}( ) in this case I guess
Second, when the image changes (it does after every 50 msec), colors may
need to be allocated/deallocated. Doing gdk_colormap_alloc_color() in a
loop seems to be a grossly inefficient way of doing this. Is there any
other option? BTW, since the application is only meant for internal
use, I do not have to make it work for 8-bit displays if it helps in any
way :)
Regards,
Lokesh
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]