> On 07/21/2010 04:18 PM, Gabriele Greco wrote:
> > As subject says, what is the correct way to blit from a GdkPixbuf to a
> > GdkImage without passing through a drawable?
> I *know* you asked for GdkImage.
> That I do not know. My usage has been from GdkPixbuf to GtkImage -- Hope
> this
> might help...
>

Sadly it does not, the operation should be done in memory without any widget
affected, blitting to gtkimage probabily requires a realized widget and a
flush operation that I need to avoid.

The problem I have is that I have to update my gdkimage (allocated with the
FASTEST method) in a way that is blitted on a GtkDrawingArea at every expose
event.

Usually this gdkimage is composed with a YUV (4:2:0) -> RGB conversion, but
when the video is not available I want to blit a "video unavailable" image
instead of the actual black image.

I can read the byte by byte the source gdkpixbuf and copy them on my
gdkimage, but this will require different code paths cause I don't know the
pixel format of the gdkimage in advance.

It's strange that GDK does not provide a method to do this since it already
provides method to blit gdkpixbufs to every other client or server type of
"bitmap" objects :)

-- 
Bye,
 Gabry
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to