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

search for in the

printer_create_dc> <printer_close
Last updated: Fri, 13 Nov 2009

view this page in

printer_create_brush

(PECL printer SVN)

printer_create_brush新規ブラシを作成する

説明

resource printer_create_brush ( int $style , string $color )

この関数は、新しいブラシを作成してブラシへのハンドルを返します。 ブラシは、図形を塗りつぶすために使用されます。使用例は printer_select_brush() を参照ください。

パラメータ

style

style は、以下の定数のうちのいずれかで ある必要があります。

  • PRINTER_BRUSH_SOLID: 実線のブラシを作成します。
  • PRINTER_BRUSH_DIAGONAL: 45 度右上がりハッチ( / )のブラシを作成します。
  • PRINTER_BRUSH_CROSS: クロスハッチ( + )のブラシを作成します。
  • PRINTER_BRUSH_DIAGCROSS: 45 度回転したクロスハッチ( x )のブラシを作成します。
  • PRINTER_BRUSH_FDIAGONAL: 45 度右下がりハッチ( \ )のブラシを作成します。
  • PRINTER_BRUSH_HORIZONTAL: 水平ハッチ( - )のブラシを作成します。
  • PRINTER_BRUSH_VERTICAL: 垂直ハッチ( | )のブラシを作成します。
  • PRINTER_BRUSH_CUSTOM: BMP ファイルからカスタムブラシを作成します。2 番目のパラメータには RGB 色コードのかわりに BMP を指定します。

color

color は RGB 16 進フォーマットである必要があります。 たとえば黒は "000000" となります。

返り値

ブラシのハンドル、あるいはエラー時に FALSE を返します。



add a note add a note User Contributed Notes
printer_create_brush
There are no user contributed notes for this page.

printer_create_dc> <printer_close
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites