Re: pixmap width and height



On Sun, 2002-01-20 at 12:24, Ian Bell wrote:
But this refers to a Pixbuf not a Pixmap.

Oops. You're right. Pixmaps are Drawables, like windows. Try "man
XGetGeometry". 

Or Taura's suggestion:


pixmap = load_pixmap(data);
if(pixmap != NULL)
{
        gdk_window_get_size((GdkWindow *)pixmap, &width, &height);
}


... sorry about the confusion. I'll read more carefully next time. :)

-Michael




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