PRINTER_DRAW_ELIPSE(3) 1 PRINTER_DRAW_ELIPSE(3)printer_draw_elipse - Draw an ellipseSYNOPSIS
void printer_draw_elipse (resource $printer_handle, int $ul_x, int $ul_y, int $lr_x, int $lr_y)
DESCRIPTION
The function draws an ellipse.
PARAMETERS
o $printer_handle
-$printer_handle must be a valid printer handle.
o $ul_x
-$ul_x is the upper left x coordinate of the ellipse.
o $ul_y
-$ul_y is the upper left y coordinate of the ellipse.
o $lr_x
-$lr_x is the lower right x coordinate of the ellipse.
o $lr_y
-$lr_y is the lower right y coordinate of the ellipse.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
printer_draw_elipse(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_elipse($handle, 1, 1, 500, 500);
printer_delete_brush($brush);
printer_delete_pen($pen);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>
PHP Documentation Group PRINTER_DRAW_ELIPSE(3)
Check Out this Related Man Page
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)
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)
Hi,
Dose any one know, How can i return a 3D ellipse points if i have these information about the ellipse?
All 3 length of axes, dip of each plane and azimuth of each axes.
i.e., axes length=(1 cm, 2 cm, 3cm);dip of planes=(15 deg, 80 deg);azimuth of each axes=(10 deg,50 deg, 120 deg).
I... (3 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)
Hello All,
I am having an issue with ellipse environment,
Subscribing ellipse version /opt/mincom/ellipse/bs037__ora_cics_svr
.profile: ulimit: exceeds allowable limit ,
prj -l ellsupp
#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192... (22 Replies)