Image-Magick-PolyText

 view release on metacpan or  search on metacpan

lib/Image/Magick/PolyText/FreeType.pm  view on Meta::CPAN

108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
die $result if $result;
 
# We have to set the background to none so when the bitmap is rotated,
# the areas filled in where the glyph is moved from are left as white.
 
$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;
 
$result = $bitmap -> Rotate($rotation);
 
die $result if $result;
 
return $bitmap;



( run in 0.239 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )