<?php
array render_pixmap_and_mask(int $alpha_threshold)
?> 1: <?php
2: $cmap = gdk::colormap_get_system();
3: $c = $cmap->alloc('purple');
4:
5: list($mp, $mm) = $pixbuf->render_pixmap_and_mask(0);
6: $window = $area->window;
7: $gc = $window->new_gc();
8: $gc->foreground = $c;
9: $gc->clip_mask = $mm;
10: gdk::draw_arc($mp, $gc, true, $mp->width/2 - 100, $mp->height/2 - 100,
11: 200, 200, 90 * 64, 270 * 64);
12: gdk::draw_pixmap($area->window, $area->style->fg_gc[GTK_STATE_NORMAL],
13: $mp, 0, 0, 0, 0, $mp->width, $mp->height);
14: ?>