downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

printer_select_font> <printer_open
[edit] Last updated: Fri, 14 Jun 2013

view this page in

printer_select_brush

(PECL printer SVN)

printer_select_brushSeleciona um pincel

Descrição

void printer_select_brush ( resource $printer_handle , resource $brush_handle )

A função seleciona um pincel como o objeto de desenho do device context atual. Um pincel é usado para prencher formas. Se você desenhar um retângulo o pincel é usado para desenhar a forma, enquanto a caneta é usado para desenhar a borda. Se você não tiver selecionado um pincel andes de desenhar formas, a forma não será prenchida. printer_handle deve ser um manipulador válido para uma impressora. brush_handle deve ser um manipulador válido para um pincel.

Exemplo #1 Exemplo printer_select_brush()

<?php
$handle 
printer_open();
printer_start_doc($handle"My Document");
printer_start_page($handle);
$pen printer_create_pen(PRINTER_PEN_SOLID2"000000");
printer_select_pen($handle$pen);
$brush printer_create_brush(PRINTER_BRUSH_CUSTOM"c:\\brush.bmp");
printer_select_brush($handle$brush);
printer_draw_rectangle($handle11500500); 
printer_delete_brush($brush);
$brush printer_create_brush(PRINTER_BRUSH_SOLID"000000");
printer_select_brush($handle$brush);
printer_draw_rectangle($handle15015001001); 
printer_delete_brush($brush);
printer_delete_pen($pen);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>


add a note add a note User Contributed Notes printer_select_brush - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites