Re: [gtk-list] Re: Graphics widget
- From: Sascha Ziemann <szi aibon ping de>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Graphics widget
- Date: Thu, 16 Oct 1997 08:55:44 +0200
Raph Levien wrote:
> GzillaByteSink *bytesink;
> GzillaImgSink *imgsink;
>
> imgsink = gzilla_image_new (width, height, "", bg_color);
> bytesink = gzilla_jpeg_new (imgsink);
>
> /* Pack bytesink->widget into the container of your choice here. */
>
> gzilla_bytesink_write (bytesink, buf, bufsize);
> ...
>
> gzilla_bytesink_close (bytesink);
>
> For large images, try to split up the bytesink_write calls into multiple
> iterations of the idle loop - this will prevent the UI from stalling
> while the image is being decoded - a fairly CPU intensive process.
How about putting it in another thread?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]