printer_create_dcとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > printer_create_dcの意味・解説 

printer_create_dc

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

説明

void printer_create_dc ( resource handle )
この関数は、新しいデバイスコンテキストを作成します。 デバイスコンテキストは、ドキュメントのグラフィックオブジェクトを カスタマイズするために使用されます。 handle は、プリンタを指す有効なハンドルである 必要があります。
例 1852. printer_create_dc() の例
<?php
$handle = printer_open();
printer_start_doc($handle);
printer_start_page($handle);

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

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

printer_delete_dc($handle);

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



このページでは「PHP関数リファレンス」からprinter_create_dcを検索した結果を表示しています。
Weblioに収録されているすべての辞書からprinter_create_dcを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からprinter_create_dc を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「printer_create_dc」の関連用語

printer_create_dcのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



printer_create_dcのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2025 by the PHP Documentation Group.

©2025 GRAS Group, Inc.RSS