<?php
array gdk::pixmap_create_from_xpm(GdkWindow $window,
GdkColor $trans_color,
string $filename)
?>
provides the defaults for creating the pixmap; it is the same
window you would pass to the GdkPixmap() constructor
the color to use to fill in the transparent pixels in the
pixmap. Can be null.
<?php
list($pixmap, $mask) =
gdk::pixmap_create_from_xpm($win->window, null, "gtk-logo.xpm");
?>
<?php
$book_open_xpm = array("16 16 4 1",
" c None s None",
". c black",
"X c #808080",
"o c white",
" ",
" .. ",
" .Xo. ... ",
" .Xoo. ..oo. ",
" .Xooo.Xooo... ",
" .Xooo.oooo.X. ",
" .Xooo.Xooo.X. ",
" .Xooo.oooo.X. ",
" .Xooo.Xooo.X. ",
" .Xooo.oooo.X. ",
" .Xoo.Xoo..X. ",
" .Xo.o..ooX. ",
" .X..XXXXX. ",
" ..X....... ",
" .. ",
" ");
list($pixmap, $mask) =
gdk::pixmap_create_from_xpm_d($win->window, null, $book_open_xpm);
?>