Re: Screen size and rapid display of graphics in gnome



Andrew Price <andrew.price@eng.monash.edu.au> writes: 
> 
> A second, slightly more taxing question. What is the fastest way to
> display
> a block of memory as a graphic on a gnome desktop. Under Xt I would use
> SHM extensions. Can this be done with gnome, and if so how? 
> (To date , SHM extensions want to know about the display, which doesnt
> seem
> to be accessible under gnome)
> 

If your block of memory is in the display's format, use GdkImage, it
automatically uses shared memory if it's available. If your block of
memory is in RGB format, use the gdk/gdkrgb.h functions, that will go
via shared memory also.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]