The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Cv::Pango - Draw a variety of characters using the Pango

SYNOPSIS

 use Cv;
 use Cv::Pango;
 
 my $img = Cv::Mat->new([240, 320], CV_8UC4);
 $img->putText(
        "\x{03A0}\x{03B1}\x{03BD}\x{8A9E}", # "Παν語",
        [20, 200], 'Sans Serif 42',
        );
 $img->showImage;
 $img->waitKey;

DESCRIPTION

Cv::Pango draw a variety of characters by using Pango. Replace Cv::Arr::PutText() itself.

METHOD

PutText
  $img->putText($text, $org, $font, $color);
BoxText
  $img->boxText($text, $org, $font, $color);
GetTextSize
  Cv->getTextSize($textString, $font, my $textSize, my $baseline);
    or
  $font->getTextSize($textString, my $textSize, my $baseline);

SEE ALSO

Cv, Pango

AUTHOR

MASUDA Yuta <yuta.cpan@gmail.com>

LICENCE

Copyright (c) 2013 by Masuda Yuta.

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.