Re: transferring images through ORBit and gdk_draw_rgb_image
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: pvosta unionbio-eu com
- Cc: ORBit list <orbit-list gnome org>, gtk-list gnome org
- Subject: Re: transferring images through ORBit and gdk_draw_rgb_image
- Date: 17 Apr 2003 17:50:37 +0200
On Thu, 2003-04-17 at 17:54, Peter Van Osta wrote:
> For our application I will have to tranfer image data, mostly form the
> server to the client. On the client side I will use "gdk_draw_rgb_image"
> and guchar buffers to put the images into a GTK interface.
> As far as I can find out, the best way to transfer iamge data from the
> server to the client is to use a "sequence". The bitmaps in the server
> can be 32 bit RGBX images (sometimes 8bit images and 16bit images). For
> display purposes I guess it is best to transfer them all to RGBX buffers
> and pump these through to the client. Is the way shown here, the best
> way to define the buffer:
> typedef sequence<char,4> rgbximg;
I would personally use the stream interface in Bonobo to transfer the
images. If you're not going to use Bonobo, you can create similar ad-hoc
interfaces for the image transfer.
] [Thread Prev