source: www/manuals/PHP_manual/function.printer-create-brush.html@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 4.2 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>printer_create_brush</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
8REL="HOME"
9TITLE="Manuál PHP"
10HREF="index.html"><LINK
11REL="UP"
12TITLE="Printer functions"
13HREF="ref.printer.html"><LINK
14REL="PREVIOUS"
15TITLE="printer_close"
16HREF="function.printer-close.html"><LINK
17REL="NEXT"
18TITLE="printer_create_dc"
19HREF="function.printer-create-dc.html"><META
20HTTP-EQUIV="Content-type"
21CONTENT="text/html; charset=ISO-8859-2"></HEAD
22><BODY
23CLASS="refentry"
24BGCOLOR="#FFFFFF"
25TEXT="#000000"
26LINK="#0000FF"
27VLINK="#840084"
28ALINK="#0000FF"
29><DIV
30CLASS="NAVHEADER"
31><TABLE
32SUMMARY="Header navigation table"
33WIDTH="100%"
34BORDER="0"
35CELLPADDING="0"
36CELLSPACING="0"
37><TR
38><TH
39COLSPAN="3"
40ALIGN="center"
41>Manuál PHP</TH
42></TR
43><TR
44><TD
45WIDTH="10%"
46ALIGN="left"
47VALIGN="bottom"
48><A
49HREF="function.printer-close.html"
50ACCESSKEY="P"
51>Pøedcházející</A
52></TD
53><TD
54WIDTH="80%"
55ALIGN="center"
56VALIGN="bottom"
57></TD
58><TD
59WIDTH="10%"
60ALIGN="right"
61VALIGN="bottom"
62><A
63HREF="function.printer-create-dc.html"
64ACCESSKEY="N"
65>Dal¹í</A
66></TD
67></TR
68></TABLE
69><HR
70ALIGN="LEFT"
71WIDTH="100%"></DIV
72><H1
73><A
74NAME="function.printer-create-brush"
75></A
76>printer_create_brush</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN72559"
81></A
82><P
83> (no version information, might be only in CVS)</P
84>printer_create_brush&nbsp;--&nbsp;Create a new brush</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN72562"
89></A
90><H2
91>Description</H2
92>mixed <B
93CLASS="methodname"
94>printer_create_brush</B
95> ( int style, string color)<BR
96></BR
97><P
98>&#13; The function creates a new brush and returns a handle to it. A brush
99 is used to fill shapes. For an example see
100 <A
101HREF="function.printer-select-brush.html"
102><B
103CLASS="function"
104>printer_select_brush()</B
105></A
106>. <TT
107CLASS="parameter"
108><I
109>color</I
110></TT
111>
112 must be a color in RGB hex format, i.e. "000000" for black,
113 <TT
114CLASS="parameter"
115><I
116>style</I
117></TT
118> must be one of the following constants:
119 <P
120></P
121><UL
122><LI
123><P
124>&#13; <TT
125CLASS="parameter"
126><I
127>PRINTER_BRUSH_SOLID</I
128></TT
129>:
130 creates a brush with a solid color.
131 </P
132></LI
133><LI
134><P
135>&#13; <TT
136CLASS="parameter"
137><I
138>PRINTER_BRUSH_DIAGONAL</I
139></TT
140>:
141 creates a brush with a 45-degree upward left-to-right hatch ( / ).
142 </P
143></LI
144><LI
145><P
146>&#13; <TT
147CLASS="parameter"
148><I
149>PRINTER_BRUSH_CROSS</I
150></TT
151>:
152 creates a brush with a cross hatch ( + ).
153 </P
154></LI
155><LI
156><P
157>&#13; <TT
158CLASS="parameter"
159><I
160>PRINTER_BRUSH_DIAGCROSS</I
161></TT
162>:
163 creates a brush with a 45 cross hatch ( x ).
164 </P
165></LI
166><LI
167><P
168>&#13; <TT
169CLASS="parameter"
170><I
171>PRINTER_BRUSH_FDIAGONAL</I
172></TT
173>:
174 creates a brush with a 45-degree downward left-to-right hatch ( \ ).
175 </P
176></LI
177><LI
178><P
179>&#13; <TT
180CLASS="parameter"
181><I
182>PRINTER_BRUSH_HORIZONTAL</I
183></TT
184>:
185 creates a brush with a horizontal hatch ( - ).
186 </P
187></LI
188><LI
189><P
190>&#13; <TT
191CLASS="parameter"
192><I
193>PRINTER_BRUSH_VERTICAL</I
194></TT
195>:
196 creates a brush with a vertical hatch ( | ).
197 </P
198></LI
199><LI
200><P
201>&#13; <TT
202CLASS="parameter"
203><I
204>PRINTER_BRUSH_CUSTOM</I
205></TT
206>:
207 creates a custom brush from an BMP file. The second parameter
208 is used to specify the BMP instead of the RGB color code.
209 </P
210></LI
211></UL
212>
213 </P
214></DIV
215><DIV
216CLASS="NAVFOOTER"
217><HR
218ALIGN="LEFT"
219WIDTH="100%"><TABLE
220SUMMARY="Footer navigation table"
221WIDTH="100%"
222BORDER="0"
223CELLPADDING="0"
224CELLSPACING="0"
225><TR
226><TD
227WIDTH="33%"
228ALIGN="left"
229VALIGN="top"
230><A
231HREF="function.printer-close.html"
232ACCESSKEY="P"
233>Pøedcházející</A
234></TD
235><TD
236WIDTH="34%"
237ALIGN="center"
238VALIGN="top"
239><A
240HREF="index.html"
241ACCESSKEY="H"
242>Domù</A
243></TD
244><TD
245WIDTH="33%"
246ALIGN="right"
247VALIGN="top"
248><A
249HREF="function.printer-create-dc.html"
250ACCESSKEY="N"
251>Dal¹í</A
252></TD
253></TR
254><TR
255><TD
256WIDTH="33%"
257ALIGN="left"
258VALIGN="top"
259>printer_close</TD
260><TD
261WIDTH="34%"
262ALIGN="center"
263VALIGN="top"
264><A
265HREF="ref.printer.html"
266ACCESSKEY="U"
267>Nahoru</A
268></TD
269><TD
270WIDTH="33%"
271ALIGN="right"
272VALIGN="top"
273>printer_create_dc</TD
274></TR
275></TABLE
276></DIV
277></BODY
278></HTML
279>
Note: See TracBrowser for help on using the repository browser.