Gdk::Pixbuf::create_from_data => what kind of data ?
- From: Alexandre <alex hocquel_NOSPAM_ free fr>
- To: gtkmm-list gnome org
- Subject: Gdk::Pixbuf::create_from_data => what kind of data ?
- Date: Mon, 20 Mar 2006 11:39:28 +0100
Hello,
I have to refresh some picture from a webcam (jpeg format) and actually
I use a :
Glib::RefPtr<Gdk::Pixbuf> current_frame_;
to refresh in an << on_expose_event(GdkEventExpose *event ) >> method.
If I load the new pict from file it's ok it works fine...
But my aim is to refresh from memory and not file, for speed and 'cause
we work on the picture (transform in B&W etc. before <= we use Magick++
to work on it)
So after looking on all method I think that I have choice between :
Gdk::Pixbuf::create_from_data
and
Gdk::Pixbuf::create_from_xpm_data
but the fact is I don't understand what kind of data I pass to them...
for example with create_from_xpm_data : is it the content of a xpm file
(all text) or only the content of the char array ?
and for create_from_data does anyone got a sample ?
thanks by advance for all your answear,
Alexandre
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]