1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP Developer''''s Dictionary- P65 ppsx

5 105 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề PHP Developer’s Dictionary
Trường học IT-SC
Thể loại Tài liệu
Định dạng
Số trang 5
Dung lượng 361,47 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

pdf_restore Syntax void pdf_restore int pdf document Description The pdf_restore function, which was added in PHP 3.0.6 and PHP 4, is used to restore the graphics state you saved wi

Trang 1

The pdf_continue_text() function, which was added in PHP 3.0.6 and PHP 4.0, outputs text at the beginning of the next line The effect is similar to performing a carriage return and line feed before outputting the text

pdf_stringwidth()

Syntax

double pdf_stringwidth (int pdf document, string text)

Description

The pdf_stringwidth() function, which was added in PHP 3.0.6 and PHP 4, returns the width of the current font for text in points A font value must have been set

previously for this function to work properly

pdf_save()

Syntax

void pdf_save (int pdf document)

Description

The pdf_save() function, which was added in PHP 3.0.6 and PHP 4, is used to save the current graphics state It enables you to work easily with one object without impacting other objects

pdf_restore()

Syntax

void pdf_restore (int pdf document )

Description

The pdf_restore() function, which was added in PHP 3.0.6 and PHP 4, is used to restore the graphics state you saved with pdf_save() It enables you to work easily with one object without impacting other objects

pdf_translate()

Trang 2

Syntax

void pdf_translate (int pdf document, double x-coor, double y-coor)

Description

The pdf_translate() function, which was added in PHP 3.0.6 and PHP 4, is used to shift the origin of the coordinate system to the x-coor and y-coor values You need

to call pdf_moveto() to set the current point after using this function

pdf_scale()

Syntax

void pdf_scale (int pdf document, double x-scale, double y-scale)

Description

The pdf_scale() function, which was added in PHP 3.0.6 and PHP 4, is used to scale the coordinate system for both the x and y axes, by the x-scale and y-scale

factors

pdf_rotate()

Syntax

void pdf_rotate (int pdf document, double angle)

Description

The pdf_rotate() function, which was added PHP 3.0.6 and PHP 4, is used to rotate the current coordinate system by the angle parameter, which is specified in degrees

The rotation is centered at the current origin and a positive value for angle indicates

clockwise rotation

pdf_setflat()

Syntax

Trang 3

Description

The pdf_setflat() function, which was added in PHP 3.0.6 and PHP 4.0, sets the flatness with a minimum value of 0 and a maximum of 100

pdf_setlinejoin()

Syntax

void pdf_setlinejoin (int pdf document, long value)

Description

The pdf_setlinejoin() function, which was added in PHP 3.0.6 and PHP 4.0, sets the linejoin value , which must be between 0 and 2 Possible values are 0 for miter, 1 for

round, and 2 for bevel

pdf_setlinecap()

Syntax

void pdf_setlinecap (int pdf document, int value)

Description

The pdf_setlinecap() function, which was added in PHP 3.0.6 and PHP 4.0, sets the linecap value, which must be between 0 and 2 Possible values are 0 for butt end, 1 for round, and 2 for projecting square

pdf_setmiterlimit()

Syntax

void pdf_setmiterlimit (int pdf document, double value)

Description

Trang 4

The pdf_setmiterlimit() function, which was added in PHP 3.0.6 and PHP 4.0, is used to specify the behavior when two line segments meet at a corner, including how pointed the corner should be when they meet at a sharp angle The minimum for

value is 1

pdf_setlinewidth()

Syntax

void pdf_setlinewidth (int pdf document, double width)

Description

The pdf_setlinewidth() function, which was added in PHP 3.0.6 and PHP 4.0, sets the current line width The width parameter is a value specified in points (72 points

= 1 inch)

pdf_setdash()

Syntax

void pdf_setdash (int pdf document, double white, double black)

Description

The pdf_setdash() function, which was added in PHP 3.0.6 and PHP 4.0, sets a pattern for dashed lines where white and black are the lengths of the segments in

points A zero value indicates a solid line

pdf_moveto()

Syntax

void pdf_moveto (int pdf document, double x-coor, double y-coor)

Description

The pdf_moveto() function, which was added in PHP 3.0.6 and PHP 4.0, moves the current point to the location specified by x-coor and y-coor coordinates

Trang 5

Syntax

void pdf_curveto (int pdf document, double x1,

double y1, double x2, double y2, double x3, double y3)

Description

The pdf_curveto() function, which was added in PHP 3.0.6 and PHP 4.0 draws a Bézier cubic curve using the current point as the starting point, x3 and y3 as the end point and ( x1 , y1 ),( x2 , y2 ) as the control points

pdf_lineto()

Syntax

void pdf_lineto (int pdf document, double x-coor, double y-coor)

Description

The pdf_lineto() function, which was added in PHP 3.0.6 and PHP 4.0, draws a line from the current point to the location indicated by the x and y coordinates

pdf_circle()

Syntax

void pdf_circle (int pdf document, double x-coor, double y-coor, double

radius)

Description

The pdf_circle() function , which was added in PHP 3.0.6 and PHP 4.0, draws a circle centered at the x and y coordinates with a radius of radius

pdf_arc()

Syntax

void pdf_arc (int pdf document, double x-coor,

double y-coor, double radius, double start, double end)

Ngày đăng: 07/07/2014, 05:20

TỪ KHÓA LIÊN QUAN