PRINTER_SELECT_BRUSH(3) 1 PRINTER_SELECT_BRUSH(3)printer_select_brush - Select a brushSYNOPSIS
void printer_select_brush (resource $printer_handle, resource $brush_handle)
DESCRIPTION
The function selects a brush as the active drawing object of the actual device context. A brush is used to fill shapes. If you draw an
rectangle the brush is used to draw the shapes, while the pen is used to draw the border.
If you haven't selected a brush before drawing shapes, the shape won't be filled.
PARAMETERS
o $printer_handle
-$printer_handle must be a valid printer handle.
o $brush_handle
-$brush_handle must be a valid brush handle.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
printer_select_brush(3) example
<?php
$handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);
$pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000");
printer_select_pen($handle, $pen);
$brush = printer_create_brush(PRINTER_BRUSH_CUSTOM, "c:\brush.bmp");
printer_select_brush($handle, $brush);
printer_draw_rectangle($handle, 1, 1, 500, 500);
printer_delete_brush($brush);
$brush = printer_create_brush(PRINTER_BRUSH_SOLID, "000000");
printer_select_brush($handle, $brush);
printer_draw_rectangle($handle, 1, 501, 500, 1001);
printer_delete_brush($brush);
printer_delete_pen($pen);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>
PHP Documentation Group PRINTER_SELECT_BRUSH(3)
Check Out this Related Man Page
PRINTER_DRAW_CHORD(3) 1 PRINTER_DRAW_CHORD(3)printer_draw_chord - Draw a chordSYNOPSIS
void printer_draw_chord (resource $printer_handle, int $rec_x, int $rec_y, int $rec_x1, int $rec_y1, int $rad_x, int $rad_y, int
$rad_x1, int $rad_y1)
DESCRIPTION
The function simply draws an chord.
PARAMETERS
o $printer_handle
-$printer_handle must be a valid printer handle.
o $rec_x
-$rec_x is the upper left x coordinate of the bounding rectangle.
o $rec_y
-$rec_y is the upper left y coordinate of the bounding rectangle.
o $rec_x1
-$rec_x1 is the lower right x coordinate of the bounding rectangle.
o $rec_y1
-$rec_y1 is the lower right y coordinate of the bounding rectangle.
o $rad_x
-$rad_x is x coordinate of the radial defining the beginning of the chord.
o $rad_y
-$rad_y is y coordinate of the radial defining the beginning of the chord.
o $rad_x1
-$rad_x1 is x coordinate of the radial defining the end of the chord.
o $rad_y1
-$rad_y1 is y coordinate of the radial defining the end of the chord.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
printer_draw_chord(3) example
<?php
$handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);
$pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000");
printer_select_pen($handle, $pen);
$brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF");
printer_select_brush($handle, $brush);
printer_draw_chord($handle, 1, 1, 500, 500, 1, 1, 500, 1);
printer_delete_brush($brush);
printer_delete_pen($pen);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>
PHP Documentation Group PRINTER_DRAW_CHORD(3)
Hello every one...
In the last couple of weeks that i have been with shell scripting. I have gained partial insight as to how things are down.
Now to further brush my self i need Excercises to do...Is there any place i can get a TXT / DOC / PDF that has questions catering from starters to... (2 Replies)
I am compiling a software xchm on solaris 10.
First i run './configure'
There is no error.
But when i start compiling using 'gmake'
following error shown
/usr/local/include/wx-2.6/wx/x11/brush.h: In copy constructor `wxBrush::wxBrush(const wxBrush&)':... (3 Replies)
I do have a file (named as templist) which looks like this one:
00450000.000000 00402300.000000 00040000.000000 00020000.000000 00020000.000000 00020000.000000 00020000.000000
and I want to make a script that adds this using AWK or FOR.
I tried using awk using the command
but it just... (8 Replies)
i have a file named as templist which looks like this:
i want to translate spaces to a new line so that the file would look like this
im using sed with this sed -e 's/" "/\n/' templist > templist.out but it doesn't work. can someone please help me. (2 Replies)
Hi,
My File 'temp.txt' contents are like this.
<Managers>
Mng={{FIL|FAVEI.mng|111}|15.000000|17.000000|17.000000|
Mng={{FIL|FAPSV.mng|222}|3.000000|0.000000|0.000000|0.000000|
Mng={{FIL|FAVIF.mng|333}|8.000000|8.000000|8.000000|8.000000|... (3 Replies)
Hi....can you guys help me out in this script??
Below is a text file and it contains these:
GEF001 000093625 MKL002510 000001 000000 000000 000000 000000 000000 000001
GEF001 000093625 MKL003604 000001 000000 000000 000000 000000 000000 000001
GEF001 000093625 MKL005675 000001... (4 Replies)
Does anybody know the commands to access the data from a pen drive in a SCO Openserver 6.
What are the parameters to the mount command for accessing the USB port:confused: (9 Replies)
Hey guys I am reading a file in c that has a record like this:
1002:credit card:c:500.000000
2002:cred:d:200.000000
I am trying to read the file like this but I am getting a segmentation fault. Any ideas why?
while (fscanf(fp1, "%d:%:%c:%lf\n",&accountnumb,mainname,&type,&transactionc) !=... (4 Replies)
Can someone please explain this to me?
auser:x:500:500:Anne User:/home/auser:/bin/sh
buser:x:501:501:Bob User:/home/buser:/bin/bash
I'm used to it looking like this. What is the difference between the first name and second name? In the first case I had to use the first name to change my... (3 Replies)
Hi,
I have a file in PERL in the following pattern
filename| 06-Dec-11 03.04.14.000000 PM
filename1| 06-Dec-11 05.05.14.000000 PM
I need to replace .(dot) with :(semicolon) in the timestamp value of the file
How can this be done. Any help will be appreciated
Thanks in advance (5 Replies)
I have a pen drive1 with UFS file system and it has 43G used. It has a hell lot of soft links to other files which are located in a second pen drive2. We partitioned the file system on sun sparc machine, such that / has around 150G space.Now when we are copying the files from pen drive 1 to / on... (3 Replies)