|
Wingraph - manipulating of Win32 GDI |
Wingraph - manipulating of Win32 GDI
use Wingraph; $dc=new Wingraph(device=>'PS', desc=>'Desc' [, metafile=>'metafilename');
This module allows you manipulate some subset of Win32 GDI. This subset includes a some drawing functions and device context related functions.
new(%params)Create a new Wingraph object. Parameters are pass as hash and have following meaning:
devicedescmetafileLineTo($x, $y)($x, $y).
MoveTo($x, $y)($x, $y) with current pen.
Also change a current point of pen to ($x, $y).
SetBrush($int)$int.
Intencity may be from 0 (darknest) to 255 (lightest).
SetPen($w)SetFont($fontname)$fontname. $fontname have the following format:
"font name, size in points, charset". $charset may be
omitted, in this case assumes charset 204.
TextOut($x,$y,$s)$s at position $x,$y.
TextSize($s)$s using current font. Height and width return
as array, first element is width, second - height.
FillRect($x,$y,$w,$h)($x,$y) and width equal to $w and
height equal to $h, fill with current brush.
NextPage()$param{$metafile} incremented and new file created.
Copyright 2000 Ivan Frolcov.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Wingraph - manipulating of Win32 GDI |