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

search for in the

printer_create_font> <printer_create_brush
[edit] Last updated: Fri, 17 May 2013

view this page in

printer_create_dc

(PECL printer SVN)

printer_create_dc新規デバイスコンテキストを作成する

説明

void printer_create_dc ( resource $printer_handle )

この関数は、新しいデバイスコンテキストを作成します。 デバイスコンテキストは、ドキュメントのグラフィックオブジェクトを カスタマイズするために使用されます。

パラメータ

printer_handle

printer_handle には、プリンタへの有効なハンドルを指定する必要があります。

返り値

値を返しません。

例1 printer_create_dc() の例

<?php
$handle 
printer_open();
printer_start_doc($handle);
printer_start_page($handle);

printer_create_dc($handle);
/* dc に関する操作を行います */
printer_set_option($handlePRINTER_TEXT_COLOR"333333");
printer_draw_text($handle11"text");
printer_delete_dc($handle);

/* 別の dc を作成します */
printer_create_dc($handle);
printer_set_option($handlePRINTER_TEXT_COLOR"000000");
printer_draw_text($handle11"text");
/* dc に関する操作を行います */

printer_delete_dc($handle);

printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>



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

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