Hi,

I can't get BlobToImage() to work
My Code:
 
Code:
my $image=Image::Magick->new();
$image->Read('pics/example.bmp');
$image->Set(magick=>'Gray');         # My images are all 8 bit Gray BMP's
my $blob=$image->ImageToBlob();
my @grayvals = unpack "C*",$blob;
 
foreach my $element(@grayvals)                       # Setting all pixel to 0 
for testing
{
     $element = 0;
}
 
$blob=pack "C*",@grayvals;
$image->BlobToImage($blob);
 
$image->Write('example_out.bmp');
 
 
Doesn't work - the image looks the same as before.
If i use a second Image-Object to write the blob to - nothing happens at all.
The ImagetoBlob function works, because i get the right gray-values.
 
Thank you for any help
______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de


_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to