CairoX::CuttingLine - draw cutting line to cairo surface


CairoX-CuttingLine documentation  | view source Contained in the CairoX-CuttingLine distribution.

Index


NAME

Top

CairoX::CuttingLine - draw cutting line to cairo surface

VERSION

Top

Version 0.05

SYNOPSIS

Top

to use CairoX::CuttingLine to render cutting lines to a canvas:

    use CairoX::CuttingLine;

we need to provide Cairo::Context for CairoX::CuttingLine method new.

    my $surf = Cairo::ImageSurface->create ('argb32', 200 , 200 );
    my $cr = Cairo::Context->create ($surf);

set Cairo::Context object

    my $page = CairoX::CuttingLine->new( $cr );

or by cr accessor

    $page->cr( $cr );

    $page->set(  x => 10 , y => 10  );
    $page->size( width => 100 , width => 120 );
    $page->length( 10 );
    $page->line_width( 3 );
    $page->color( 1, 1, 1, 1 );    # for set_source_rgba
    $page->stroke();

DESCRIPTION

Top

CairoX::CuttingLine draws cutting line like this:

    |       |
   -+       +-
      IMAGE
   -+       +-
    |       |

FUNCTIONS

Top

AUTHOR

Top

Cornelius, <cornelius.howl at gmail.com>

BUGS

Top

Please report any bugs or feature requests to bug-cairo-cuttingline at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Cairo-CuttingLine. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc CairoX::CuttingLine




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Cairo-CuttingLine

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Cairo-CuttingLine

* CPAN Ratings

http://cpanratings.perl.org/d/Cairo-CuttingLine

* Search CPAN

http://search.cpan.org/dist/Cairo-CuttingLine/

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


CairoX-CuttingLine documentation  | view source Contained in the CairoX-CuttingLine distribution.