On Sat, 17 May 2008 12:25:41 -0500 (CDT), Bob Friesenhahn
wrote
> A value of 25 is almost completely opaque.
Hi Bob,
Thats strange. My result with my original settings:
${$r_img}->Composite(
image => $wm,
compose => 'Dissolve',
opacity => 25,
gravity => 'Center',
);
is this:
http://acatysmoof.com/posting/problems/gm/test_opaci
ty25.jpg
>
> With your example, I achieve good results if I use
>
> opacity => 65535*0.25
>
My result with these settings:
${$r_img}->Composite(
image => $wm,
compose => 'Dissolve',
opacity => 65535*0.25,
gravity => 'Center',
);
is this:
http://acatysmoof.com/posting/problems/gm/tes
t_opacity65535_025.jpg
yikes!
The result I'm looking for (created manually in Photoshop)
is this:
http://acatysmoof.com/posting/problems/gm/
test_opacity25_photoshop.jpg
I'm starting to think you may be getting different results
than I am, or that
there is mabye a small snippet of code that was also
modified that I'm
missing? Perhaps there is an external library issue in this
operation? Any
further help very much appreciated.
> The PerlMagick test suite uses this ugly code in order
to determine
> the depth of the PerlMagick build:
>
> $QuantumDepth=quantumDepth();
> if ($QuantumDepth == 8)
> {
> $MaxRGB=255;
> }
> elsif ($QuantumDepth == 16)
> {
> $MaxRGB=65535;
> }
> elsif ($QuantumDepth == 32)
> {
> $MaxRGB=4294967295;
> }
I reserve ternary alternation for exactly these types of
ugly perl moments
my $maxrgb = $quantumdepth == 8 ? 255 :
$quantumdepth == 16 ? 65535 :
$quantumdepth == 32 ? 4294967295 :
die "bad quantum depth";
Thanks,
Alex
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
Graphicsmagick-help mailing list
Graphicsmagick-help lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gra
phicsmagick-help
|