Re: pixmap width and height
- From: Taura Milana <learfox furry ao net>
- To: GTK App Devel <gtk-app-devel-list gnome org>
- Subject: Re: pixmap width and height
- Date: Sat, 19 Jan 2002 14:39:23 -0800
On 2002.01.16 21:09 harsha vishvakannada com wrote:
I have created a GdkPixmap from gdk_pixmap_from_xpm
or gdk_pixmpa_from_xpm_d
it returned me a GdkPixmap*
Now HOW can I retrieve width and height of the pixmap?
The returned GdkPixmap can be casted into a GdkWindow
when passed to gdk_window_get_size().
Ie:
pixmap = load_pixmap(data);
if(pixmap != NULL)
{
gdk_window_get_size((GdkWindow *)pixmap, &width, &height);
}
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
..__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]