view release on metacpan or search on metacpan
lib/HTML/MasonX/Free/Resolver.pm view on Meta::CPAN
package HTML::MasonX::Free::Resolver 0.007;
# ABSTRACT: a resolver that lets you specialize components with dir overlays
use Moose;
#pod =head1 OVERVIEW
#pod
#pod This class is a replacement for L<HTML::Mason::Resolver::File>. If you don't
lib/HTML/MasonX/Free/Resolver.pm view on Meta::CPAN
#pod
#pod The idea is that you can have stuff in the C<my_app> root that specializes
#pod generalized stuff in the C<shared> root. Unfortunately, it's not really very
#pod useful. You can't have F<foo> in the first comp root inherit from F<foo> in
#pod the second. You can't easily take an existing set of templates and specialize
#pod them with an overlay.
#pod
#pod I<That> is the problem that this resolver is meant to solve. Instead of having
#pod the resolver try to find each path in each comp root independenly, the
#pod C<comp_roots> are instead stored in the resolver's C<resolver_roots>. When
#pod looking for a path, it looks in each root in turn. When it finds one, it
lib/HTML/MasonX/Free/Resolver.pm view on Meta::CPAN
=encoding UTF-8
=head1 NAME
HTML::MasonX::Free::Resolver - a resolver that lets you specialize components with dir overlays
=head1 VERSION
version 0.007
lib/HTML/MasonX/Free/Resolver.pm view on Meta::CPAN
The idea is that you can have stuff in the C<my_app> root that specializes
generalized stuff in the C<shared> root. Unfortunately, it's not really very
useful. You can't have F<foo> in the first comp root inherit from F<foo> in
the second. You can't easily take an existing set of templates and specialize
them with an overlay.
I<That> is the problem that this resolver is meant to solve. Instead of having
the resolver try to find each path in each comp root independenly, the
C<comp_roots> are instead stored in the resolver's C<resolver_roots>. When
looking for a path, it looks in each root in turn. When it finds one, it
view all matches for this distribution
view release on metacpan or search on metacpan
lib/HTML/Menu/TreeView.pm view on Meta::CPAN
=cut
sub appendNode {
my $self = shift;
my $node = shift;
$node->{image} = defined $node->{image} ? $node->{image} : 'link_overlay.png';
$node->{class} = defined $node->{class} ? $node->{class} : "treeviewLink$size";
$node->{title} = defined $node->{title} ? $node->{title} : $node->{text};
$id++;
if ( $columns > 0 ) {
foreach my $key ( keys %openArrays ) {
lib/HTML/Menu/TreeView.pm view on Meta::CPAN
=cut
sub appendLastNode {
my $self = shift;
my $node = shift;
$node->{image} = defined $node->{image} ? $node->{image} : 'link_overlay.png';
$node->{class} = defined $node->{class} ? $node->{class} : "treeviewLink$size";
$node->{title} = defined $node->{title} ? $node->{title} : $node->{text};
$id++;
if ( $columns > 0 ) {
foreach my $key ( keys %openArrays ) {
view all matches for this distribution
view release on metacpan or search on metacpan
t/bug-76236.t view on Meta::CPAN
}
.innercenterslate{
overflow: hidden;
}
.slateoverlay{
position: absolute;
top: 0px;
border: 0px
}
t/bug-76236.t view on Meta::CPAN
}
.innercenterslate{
overflow: hidden;
}
.slateoverlay{
position: absolute;
top: 0px;
border: 0px
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/mime.types view on Meta::CPAN
application/oebps-package+xml opf
application/ogg ogx
application/omdoc+xml omdoc
application/onenote onetoc onetoc2 onetmp onepkg
application/oxps oxps
# application/p2p-overlay+xml
# application/parityfec
application/patch-ops-error+xml xer
application/pdf pdf
# application/pdx
application/pgp-encrypted pgp
view all matches for this distribution
view release on metacpan or search on metacpan
lib/HTTP/State.pm view on Meta::CPAN
#Their domain domain-matches the domain of the newly-created cookie, or vice-versa.
#4
#The path of the newly-created cookie path-matches the path of the existing cookie.
#
#Note: The path comparison is not symmetric, ensuring only that a
#newly-created, non-secure cookie does not overlay an existing secure
#cookie, providing some mitigation against cookie-fixing attacks. That is,
#given an existing secure cookie named 'a' with a path of '/login', a
#non-secure cookie named 'a' could be set for a path of '/' or '/foo', but
#not for a path of '/login' or '/login/en'.
view all matches for this distribution
view release on metacpan or search on metacpan
examples/MolAdjust/readpdb_select_write.pl view on Meta::CPAN
# perl readpdb_select_write.pl some.pdb
#
# reads pdb (via shift of @ARGV)
# prints a selection to STDOUT
#
# useful for overlaying visualizations with general selections in VMD
# or whatever. All accomplished without creating any variables to show
# some object method chaining.
#
use Modern::Perl;
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/Hailo/Test/TimToady.trn view on Meta::CPAN
*<%foo>
would have to be reimported on every subrule invocation
since it could be a different parent grammar.
or do you just mean a policy to look up %foo in teh current $?PARSER?
or the current COMPILING?
(and all of its antecedents, for overlays)
could just write the grammar <%COMPILING::statement_control|...
this is basically just inside-out grammar objects...
seems a little silly, stated like that.
they?
seems like it would be really easy to generate an awful lot of duplicate closures in parsing if we're not careful.
view all matches for this distribution
view release on metacpan or search on metacpan
'tlm_large' => 'Too large telemetry value',
'tlm_unsupp' => 'Unsupported telemetry',
'exp_unsupp' => 'Unsupported experimental',
'sym_inv_table' => 'Invalid symbol table or overlay',
);
=over
=item result_messages( )
return $value;
}
# return a two element array, first containing
# the symbol table id (or overlay) and second
# containing symbol id. return undef in error
sub _get_symbol_fromdst($) {
my $dstcallsign = shift @_;
my $table = undef;
return ($table, $code);
} else {
return undef;
}
} else {
# secondary symbol table, with overlay
# Check first that we really are in the
# secondary symbol table
my $dsttype = substr($leftoverstring, 0, 2);
my $overlay = substr($leftoverstring, 2, 1);
if (($type eq 'O' ||
$type eq 'A' ||
$type eq 'N' ||
$type eq 'D' ||
$type eq 'S' ||
$type eq 'Q') && $overlay =~ /^[A-Z0-9]$/o) {
if (defined($dstsymbol{$dsttype})) {
$code = substr($dstsymbol{$dsttype}, 1, 1);
return ($overlay, $code);
} else {
return undef;
}
} else {
return undef;
}
}
} else {
# primary or secondary symbol table, no overlay
if (defined($dstsymbol{$leftoverstring})) {
$table = substr($dstsymbol{$leftoverstring}, 0, 1);
$code = substr($dstsymbol{$leftoverstring}, 1, 1);
return ($table, $code);
} else {
1st: object name, has to be valid APRS object name, does not need to be space-padded
2nd: object timestamp as a unix timestamp, or zero to use current time
3rd: object latitude, decimal degrees
4th: object longitude, decimal degrees
5th: object symbol table (or overlay) and symbol code, two bytes if the given symbole length is zero (""), use point (//)
6th: object speed, -1 if non-moving (km/h)
7th: object course, -1 if non-moving
8th: object altitude, -10000 or less if not used
9th: alive or dead object (0 == dead, 1 == alive)
10th: compressed (1) or uncompressed (0)
1st: latitude in decimal degrees
2nd: longitude in decimal degrees
3rd: speed in km/h, -1 == don't include
4th: course in degrees, -1 == don't include. zero == unknown course, 360 == north
5th: altitude in meters above mean sea level, -10000 or under == don't use
6th: aprs symbol to use, first table/overlay and then code (two bytes). If string length is zero (""), uses default.
7th: hash reference for options:
"compressed": 1 for compressed format
"ambiguity": Use amount (0..4) of position ambiguity. Note that position ambiguity and compression can't be used at the same time.
"dao": Use !DAO! extension for improved precision
# longitude character
$value = int($lonval / (91 ** $i));
$lonval = $lonval % (91 ** $i);
$lonstring .= chr($value + 33);
}
# encode overlay character if it is a number
$symboltable =~ tr/0-9/a-j/;
# FIXME: no altitude/radiorange encoding
my $retstring = $symboltable . $latstring . $lonstring . $symbolcode;
if ($speed >= 0 && $course > 0 && $course <= 360) {
# In APRS spec unknown course is zero normally (and north is 360),
view all matches for this distribution
view release on metacpan or search on metacpan
This file serves as input to the loader of simulator C<mixsim.pl>.
Columns 1-5 are ignored. The C<DATA>, C<CODE>, and C<TRANS> are there only for
documenting the type of each card.
Column 6 is the number of consecutive words on this card.
Columns 7-10 is the location of word 1, which is always greater than 100, so it
does not overlay the loading router.
Columns 11-20, 21-30, ..., 71-80 are the words to be loaded.
For example, a card which has
DATA 320490000002010000000049I0000000003
view all matches for this distribution
view release on metacpan or search on metacpan
Word/noun.txt view on Meta::CPAN
overgrowth,overgrowths
overhang,overhangs
overhaul,overhauls
overhead,overheads
overlap,overlaps
overlay,overlays
overlord,overlords
overpayment,overpayments
overrun,overruns
oversea,overseas
oversee,oversees
view all matches for this distribution
view release on metacpan or search on metacpan
BCM2835/src/src/bcm2835.h view on Meta::CPAN
Some people have reported that various versions of Rasbian will crash or hang
if certain GPIO pins are toggled: https://github.com/raspberrypi/linux/issues/2550
when using bcm2835.
A workaround is to add this line to your /boot/config.txt:
\code
dtoverlay=gpio-no-irq
\endcode
\par Bindings to other languages
mikem has made Perl bindings available at CPAN:
view all matches for this distribution
view release on metacpan or search on metacpan
share/root/static/skins/slate/enqueue.css view on Meta::CPAN
#container_date { border: none; clear: both }
#container_time { margin: auto; text-align: center; clear: both }
#container_time select option { padding-right:10px; }
/* Prevent border-collapse:collapse from bleeding through in IE6, IE7 */
#container_dialog_c.yui-overlay-hidden table { *display:none; }
#priority-slider-bg
{
background: url(/static/yui/build/slider/assets/bg-fader.gif) 5px 0 no-repeat;
width: 170px;
view all matches for this distribution
view release on metacpan or search on metacpan
t/data-xml/KENTNL.xml view on Meta::CPAN
<content:encoded> </content:encoded>
</item>
<item rdf:about="http://metacpan.org/release/KENTNL/Gentoo-Overlay-Group-INI-0.2.2">
<title>Gentoo-Overlay-Group-INI-0.2.2</title>
<link>http://metacpan.org/release/KENTNL/Gentoo-Overlay-Group-INI-0.2.2</link>
<description>Load a list of overlays defined in a configuration file.</description>
<dc:creator>KENTNL</dc:creator>
<dc:date>2013-03-13T08:36:02Z</dc:date>
<content:encoded> </content:encoded>
</item>
<item rdf:about="http://metacpan.org/release/KENTNL/Gentoo-Perl-Distmap-0.2.0">
view all matches for this distribution
view release on metacpan or search on metacpan
brotli/c/common/dictionary.bin view on Meta::CPAN
In powerPolski-colorjordanBottomStart -count2.htmlnews">01.jpgOnline-rightmillerseniorISBN 00,000 guidesvalue)ectionrepair.xml" rights.html-blockregExp:hoverwithinvirginphones</tr>
using
var >');
</td>
</tr>
bahasabrasilgalegomagyarpolskisrpskiردÙ䏿ç®ä½ç¹é«ä¿¡æ¯ä¸å½æä»¬ä¸ä¸ªå
¬å¸ç®¡ç论åå¯ä»¥æå¡æ¶é´ä¸ªäººäº§åèªå·±ä¼ä¸æ¥çå·¥ä½è系没æç½ç«ææè¯è®ºä¸å¿æç« ç¨æ·é¦é¡µä½è
ææ¯é®é¢ç¸å
³ä¸è½½æç´¢ä½¿ç...
wrapperalreadycertainrealitystorageanotherdesktopofferedpatternunusualDigitalcapitalWebsitefailureconnectreducedAndroiddecadesregular & animalsreleaseAutomatgettingmethodsnothingPopularcaptionletterscapturesciencelicensechangesEngland=1&Histo...
confirmCurrentadvancesharingopeningdrawingbillionorderedGermanyrelated</form>includewhetherdefinedSciencecatalogArticlebuttonslargestuniformjourneysidebarChicagoholidayGeneralpassage,"animatefeelingarrivedpassingnaturalroughly.
The but notdensityBritainChineselack oftributeIreland" data-factorsreceivethat isLibraryhusbandin factaffairsCharlesradicalbroughtfindinglanding:lang="return leadersplannedpremiumpackageAmericaEdition]"Messageneed tovalue="complexlookingstationb...
paymenttroubleconceptcompareparentsplayersregionsmonitor ''The winningexploreadaptedGalleryproduceabilityenhancecareers). The collectSearch ancientexistedfooter handlerprintedconsoleEasternexportswindowsChannelillegalneutralsuggest_headersigning.html...
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Icon/FamFamFam/Silk.pm view on Meta::CPAN
note_add=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAITSURBVDjLpZNNSJRBGMd/s7q50ZoWISZSRAgF5VpELFJ0CK9RneokEl1qO3URpFNCXqIO0aFLEF0iiAj6JBB0WYwOoikRJiXUYqbsumv7zvu+M/N02BV30YP...
note_delete=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIJSURBVDjLpZM9SJVRGMd/532vetOswQgjSoW2gj4Gh4ZoiIKGwGi4EtQQ0VxLQhAOEW2NzUVLOQRBBioUakGT5CBiGhZe8aameLv3nPc9H0/DvX7hHQSf...
note_edit=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJtSURBVDjLpZPNS5RRFMZ/7zgzWmqTFpObMiuyKDOFCoJaCUKKUFAUBRKtWrSpoP8gwk1BixbpppURtIigqAjKkgSp0KJP86NGbaYZpxmd9773ve89LTTKj1...
note_error=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAI6SURBVDjLpZO9a5NRFMZ/b9Jq0iY20qoVxY/FELGgFoRuFQR18atLtUgHRyfR0Un/AKU4qVOxg6hLHXRwUhQaNUiLCK1iQSs1GvP9vvd933vvcUixCcnmh...
note_go=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAInSURBVDjLpZNBSJRBFMd/37papinFUgZmYESIFiGRYdQhynueig4eomNE0NmDidc8du7arUNFKJSpIKQHAwlNKkUzTVdd3W++mTfzOuxK2RoEzeENPHi//3/m...
overlays=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJeSURBVDjLpZNLSNRRFIe/O81o+WjISM0epuarEHuDqIFEDyoqEFtFD4gWQVDQoo0QhFARbowKNNpKi0DJRYVGqRmY5oPUBs3S1GnMcdR0/v8Z554WM44RGUR...
package=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAALnSURBVDjLfZNLaFx1HIW/e2fuzJ00w0ymkpQpiUKfMT7SblzU4kayELEptRChUEFEqKALUaRUV2YhlCLYjYq4FBeuiqZgC6FIQzBpEGpDkzHNs5PMTJtmHnfu...
package_add=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAMVSURBVDjLdZNLaFx1GEfPnZk7cyfNkElS0jTVKKRpE2PSpAhKHyqo2QhtShUiCPWBLhTdFKUUlxYUqggGxYqIbsSNFKQmVqMhTVujSQuhtnmMaR5NJs0k...
package_delete=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAMNSURBVDjLdZNLaFx1GMV/d+bO3DtJxkwSSWNq05YkrTVa04qIiOiiRIxgE2ohhUIKRQQFBcGiIiJiFaGIYEFERFy5dCE1pQ8JIbSEJhG66GM6idOk6...
package_go=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAMUSURBVDjLbZNLaFx1HIW/O5ln6jSZJE3SJE1L+pym1aSbirXoogah1KZUIYISRerCot34orjTBsQigt2I+EAEFwouRBMogdgniUmkIMZMpulMY2eaSdqYe...
package_green=>'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAMSSURBVDjLfZNJaFwFHIe/N+ubdCb7UpK0FbOQRdvUi4cag1iC9NA2tGoKQgTxoIKeDFLqQTAHofZiL1aK4MVTT9WmoMGIJRLN0qpJmmQas00nmcky+7...
view all matches for this distribution
view release on metacpan or search on metacpan
Currently only outputs last frame. Options for first/other shouldn't
be too difficult, though.
If the last image of the animation is not the same size as the first,
the remaining image is blacked out (no overlay). It doesn't bother
me, but it may for others.
Doesn't work with cached animations, although as images work their way
out of the cache, this shouldn't be a problem.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Image/ExifTool/DICOM.pm view on Meta::CPAN
'2020,0130' => { VR => 'SQ', Name => 'ReferencedImageOverlayBoxSequence' },
'2020,0140' => { VR => 'SQ', Name => 'ReferencedVOILUTBoxSequence' },
# annotation group
'2030,0010' => { VR => 'US', Name => 'AnnotationPosition' },
'2030,0020' => { VR => 'LO', Name => 'TextString' },
# overlay box group
'2040,0010' => { VR => 'SQ', Name => 'ReferencedOverlayPlaneSequence' },
'2040,0011' => { VR => 'US', Name => 'ReferencedOverlayPlaneGroups' },
'2040,0020' => { VR => 'SQ', Name => 'OverlayPixelDataSequence' },
'2040,0060' => { VR => 'CS', Name => 'OverlayMagnificationType' },
'2040,0070' => { VR => 'CS', Name => 'OverlaySmoothingType' },
lib/Image/ExifTool/DICOM.pm view on Meta::CPAN
'5400,1006' => { VR => 'CS', Name => 'WaveformSampleInterpretation' },
'5400,100A' => { VR => 'OB', Name => 'WaveformPaddingValue' },
'5400,1010' => { VR => 'OB', Name => 'WaveformData' },
'5600,0010' => { VR => 'OF', Name => 'FirstOrderPhaseCorrectionAngle' },
'5600,0020' => { VR => 'OF', Name => 'SpectroscopyData' },
# overlay group
'6000,0000' => { VR => 'UL', Name => 'OverlayGroupLength' },
'60xx,0010' => { VR => 'US', Name => 'OverlayRows' },
'60xx,0011' => { VR => 'US', Name => 'OverlayColumns' },
'60xx,0012' => { VR => 'US', Name => 'OverlayPlanes' },
'60xx,0015' => { VR => 'IS', Name => 'NumberOfFramesInOverlay' },
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Image/Leptonica/Func/psio2.pm view on Meta::CPAN
endpage = FALSE for each image until you get to the
last, for which you set endpage = TRUE. This causes the
"showpage" command to be invoked. Showpage outputs
the entire page and clears the raster buffer for the
next page to be added. Without a "showpage",
subsequent images from the next page will overlay those
previously put down.
(7) For multiple pages, increment the page number, starting
with page 1. This allows PostScript (and PDF) to build
a page directory, which viewers use for navigation.
lib/Image/Leptonica/Func/psio2.pm view on Meta::CPAN
endpage = FALSE for each image until you get to the
last, for which you set endpage = TRUE. This causes the
"showpage" command to be invoked. Showpage outputs
the entire page and clears the raster buffer for the
next page to be added. Without a "showpage",
subsequent images from the next page will overlay those
previously put down.
(5) For multiple images to the same page, where you are writing
both jpeg and tiff-g4, you have two options:
(a) write the g4 first, as either image (maskflag == FALSE)
or imagemask (maskflag == TRUE), and then write the
lib/Image/Leptonica/Func/psio2.pm view on Meta::CPAN
endpage = FALSE for each image until you get to the
last, for which you set endpage = TRUE. This causes the
"showpage" command to be invoked. Showpage outputs
the entire page and clears the raster buffer for the
next page to be added. Without a "showpage",
subsequent images from the next page will overlay those
previously put down.
(7) For multiple pages, increment the page number, starting
with page 1. This allows PostScript (and PDF) to build
a page directory, which viewers use for navigation.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Image/Magick/PolyText/FreeType.pm view on Meta::CPAN
$result = $bitmap -> Set(background => 'None');
die $result if $result;
# We set white as transparent so this bitmap has no background, so that
# when it's overlayed on the original image, only the glyph is visible.
$result = $bitmap -> Transparent(color => 'White');
die $result if $result;
view all matches for this distribution
view release on metacpan or search on metacpan
libpng-1.6.17/pngread.c view on Meta::CPAN
#endif /* SEQUENTIAL_READ */
#ifdef PNG_SEQUENTIAL_READ_SUPPORTED
/* Read the entire image. If the image has an alpha channel or a tRNS
* chunk, and you have called png_handle_alpha()[*], you will need to
* initialize the image to the current image that PNG will be overlaying.
* We set the num_rows again here, in case it was incorrectly set in
* png_read_start_row() by a call to png_read_update_info() or
* png_start_read_image() if png_set_interlace_handling() wasn't called
* prior to either of these functions like it should have been. You can
* only call this function once. If you desire to have an image for
view all matches for this distribution
view release on metacpan or search on metacpan
webp-src/README view on Meta::CPAN
-info ........ print info.
-h ....... this help message.
Keyboard shortcuts:
'c' ................ toggle use of color profile.
'i' ................ overlay file information.
'q' / 'Q' / ESC .... quit.
Building:
---------
view all matches for this distribution
view release on metacpan or search on metacpan
# check the default read doesn't match
ok($im->read(file=>'testimg/screen2.gif'),
"read same image without consolidate");
isnt(i_img_diff($im->{IMG}, $expected->{IMG}), 0,
"compare them - shouldn't include the overlayed second image");
}
{
print "# test the reading of single pages\n";
# build a test file
my $test_file = 'testout/t105_multi_sing.gif';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Imager/Filter/Bakumatsu.pm view on Meta::CPAN
Imager->register_filter(
type => 'bakumatsu',
callsub => \&bakumatsu,
callseq => [],
defaults => {
overlay_image => $texture,
},
);
sub bakumatsu {
my %opt = @_;
lib/Imager/Filter/Bakumatsu.pm view on Meta::CPAN
],
);
$work->rubthrough(
src => do {
my $overlay = Imager->new;
$overlay->read(file => $opt{overlay_image})
or die $overlay->errstr;
$overlay = $overlay->scale(
xpixels => $work->getwidth,
ypixels => $work->getheight,
type => 'nonprop'
);
},
lib/Imager/Filter/Bakumatsu.pm view on Meta::CPAN
$img->filter(type => 'bakumatsu');
=over 4
=item overlay_image
$img->filter(type => 'bakumatsu', overlay_image => '/foo/image.png');
Overlay image to cover (it should have alpha channel).
default is: dist/share/BakumatsuTexture.png
=back
view all matches for this distribution
view release on metacpan or search on metacpan
print STDERR "FreeType2 runtime ", Imager::Font::FT2::i_ft2_version(1),
" compile-time ", Imager::Font::FT2::i_ft2_version(0), "\n";
my $bgcolor=i_color_new(255,0,0,0);
my $overlay=Imager::ImgRaw::new(200,70,3);
my $ttraw=Imager::Font::FT2::i_ft2_new($fontname, 0);
$ttraw or print Imager::_error_as_msg(),"\n";
ok($ttraw, "loaded raw font");
my @bbox=Imager::Font::FT2::i_ft2_bbox($ttraw, 50.0, 0, 'XMCLH', 0);
print "#bbox @bbox\n";
is(@bbox, 8, "i_ft2_bbox() returns 8 values");
ok(Imager::Font::FT2::i_ft2_cp($ttraw,$overlay,5,50,1,50.0,50, 'XMCLH',1,1, 0, 0), "drawn to channel");
i_line($overlay,0,50,100,50,$bgcolor,1);
push @test_output, "t38ft2font.ppm";
open(FH,">testout/t38ft2font.ppm") || die "cannot open testout/t38ft2font.ppm\n";
binmode(FH);
my $IO = Imager::io_new_fd(fileno(FH));
ok(i_writeppm_wiol($overlay, $IO), "saved image");
close(FH);
$bgcolor=i_color_set($bgcolor,200,200,200,0);
my $backgr=Imager::ImgRaw::new(500,300,3);
view all matches for this distribution
view release on metacpan or search on metacpan
t/t10type1.t view on Meta::CPAN
unless (ok($fnum >= 0, "load font $fontname_pfb")) {
skip("without the font I can't do a thing", 90);
}
my $bgcolor=Imager::Color->new(255,0,0,255);
my $overlay=Imager::ImgRaw::new(200,70,3);
ok($fnum->cp($overlay,5,50,1,50.0,'XMCLH',1), "i_t1_cp");
i_line($overlay,0,50,100,50,$bgcolor,1);
my @bbox=$fnum->bbox(50.0,'XMCLH');
is(@bbox, 8, "i_t1_bbox");
print "# bbox: ($bbox[0], $bbox[1]) - ($bbox[2], $bbox[3])\n";
open(FH,">testout/t30t1font.ppm") || die "cannot open testout/t35t1font.ppm\n";
binmode(FH); # for os2
my $IO = Imager::io_new_fd( fileno(FH) );
i_writeppm_wiol($overlay,$IO);
close(FH);
$bgcolor=Imager::Color::set($bgcolor,200,200,200,255);
my $backgr=Imager::ImgRaw::new(280,300,3);
view all matches for this distribution
view release on metacpan or search on metacpan
t/t10win32.t view on Meta::CPAN
my $fontname=$ENV{'TTFONTTEST'} || 'Times New Roman Bold';
# i_init_fonts(); # unnecessary for Win32 font support
my $bgcolor=i_color_new(255,0,0,0);
my $overlay=Imager::ImgRaw::new(200,70,3);
my @bbox=Imager::Font::W32::i_wf_bbox($fontname, 50.0,'XMCLH');
print "#bbox: ($bbox[0], $bbox[1]) - ($bbox[2], $bbox[3])\n";
ok(Imager::Font::W32::i_wf_cp($fontname,$overlay,5,50,1,50.0,'XMCLH',1,1),
"i_wf_cp smoke test");
i_line($overlay,0,50,100,50,$bgcolor, 1);
if (open(FH,">testout/t10font.ppm")) {
binmode(FH);
my $io = Imager::io_new_fd(fileno(FH));
i_writeppm_wiol($overlay,$io);
close(FH);
}
else {
diag "cannot open testout/t10font.ppm: $!";
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Imager/Heatmap.pm view on Meta::CPAN
$hmap->insert_datas(...); # You can call multiple times to add large data that cannot process at a time.
# After adding datas, you could get heatmap as Imager instance.
my $img = $hmap->draw;
# Returned image is 4-channels image. So you can overlay it on other images.
$base_img->rubthrough( src => $hmap->img ); # Overlay on other images(see Imager::Transformations)
# And you can access probability density matrix using matrix method if you like.
# In case, maybe you would like to create some graduations which be assigned to color of heatmap and its value.
$hmap->matrix;
view all matches for this distribution
view release on metacpan or search on metacpan
Screenshot.pm view on Meta::CPAN
grab the background that you see. In fact, when I tested under
Cygwin/X I got the xterm window contents even when the Windows
screensaver was running. The root window captured appeared to be that
generated by my window manager.
Grabbing a window with other windows overlaying it will capture the
content of those windows where they hide the window you want to
capture. You may want to raise the window to top. This may be a
security concern if the overlapping windows contain any sensitive
information - true for any screen capture.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Imager/Fill.pm view on Meta::CPAN
=item *
C<fg>, C<bg> - The C<fg> color is rendered where bits are set in the
hatch, and the C<bg> where they are clear. If you use a transparent
C<fg> or C<bg>, and set combine, you can overlay the hatch onto an
existing image.
C<fg> defaults to black, C<bg> to white.
=item *
view all matches for this distribution