Printer 함수 목록
PHP Manual

printer_draw_bmp

(PECL printer CVS)

printer_draw_bmpDraw a bmp

설명

bool printer_draw_bmp ( resource $printer_handle , string $filename , int $x , int $y [, int $width ], int $height )

The function draws an bmp.

인수

printer_handle

printer_handle must be a valid printer handle.

filename

Path to the bitmap.

x

x is the upper left x coordinate of the bitmap.

y

y is the upper left y coordinate of the bitmap.

width

The bitmap width.

height

The bitmap height.

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.

예제

Example #1 printer_draw_bmp() example

<?php
$handle 
printer_open();
printer_start_doc($handle"My Document");
printer_start_page($handle);

printer_draw_bmp($handle"c:\\image.bmp"11);

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


Printer 함수 목록
PHP Manual