Re: Transparent Pixbufs
- From: Owen Taylor <otaylor redhat com>
- To: john mckerrell net
- Cc: gtk-list gnome org
- Subject: Re: Transparent Pixbufs
- Date: 05 Mar 2003 12:57:40 -0500
On Wed, 2003-03-05 at 12:49, John McKerrell wrote:
> Hi,
> I'm trying to load a partly transparent image into a pixbuf.
> Basically, to keep it short, the opaque parts of the image show up with
> diagonal lines and, I think, black and white. It only happens on an
> image with transparency with no code changes. I'm guessing this is
> indicative of something obviously wrong that I've done but I'm not sure
> what, hope you can help. I've attached a cut-down code sample to show
> what I'm doing.
gdk_draw_rgb_image_dithalign doesn't support transparency.
Use gdk_draw_pixbuf() instead (GTK+-2.0 called this by the more
cumbersome name gdk_pixbuf_render_to_drawable(), if you are
using GTK+-1.2, you are out of luck.)
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]