Re: [gtkmm] Error creating a pixbuf from an image



hi again,

I fixed my problem.

When I create a new colormap from the visual, as opposed from the
Gdk::Image's colormap, all is well.

Cheers
Don

On Thu, 2004-02-26 at 15:48, Don Scorgie wrote:
> hi,
> 
> I am trying to create a Gdk::Pixbuf from a Gdk::Image using
> Gdk::Pixbuf::create(const Glib::RefPtr<Image>&,
> const Glib::RefPtr<Colormap>&, int src_x, int src_y, int dest_x, 
> int dest_y, int width, int height)
> 
> Unfortunately, whenever I try, it seg faults.
> 
> Each variable, I am taking to mean:
> src_x/y: The upper left corner of the image (i.e. 0,0)
> dest_x/y: The upper left corner of the destination(i.e. 0,0)
> If I am wrong, please let me know.
> 
> Attached is the smallest example I can create.  Any help would be much
> appreciated.
> 
> Cheers
> Don
> 
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]