"Daniel Antonio Peraza Cedrez" on  wrote...
| Hi. I'm using Magick++ to code an example of the Affine Transformation but
| once I build the DrawableAffine object with this matrix: {1, 0, 0, 1, 50,
| 100} and I use image.write(filename) I got exactly the same image that I
| used as input.
| 
Of course you did.  All you did was move the image around on the virtual
canvas.  That is the images virtual offset changed!

See...
  Affine Translations
    http://www.cit.gu.edu.au/~anthony/graphics/imagick6/distorts/#affine_trans

What format did you save as?  JPEG does not under stand virtual
canvases,  PNG does.   GIF also except for negative positions.


| I noticed this problem working under MS - Windows using the command convert
| -affine 1,0,0,1,50,100 -transform input.jpg output.jpg
|
Yeap..  JPEg would not have saved the new position.
You could try -flatten after the -transform, whcih will 'fill out' the
virtual canvas with the current background color.

| (by the way, I don't
| know what is the role of the -transform option in this command neither if
| it's necessary to achive the desired effect in Magick++). By the other hand,
| some guys from Java Advanced Imaging (which I was testing too) told me there
| was no way of coding the Image's coordinate system origin into a file;
|
Told you.  JPEG does not have an understanding of virtual canvas info.
PNG does but few things use it.  GIF can have a positive offset and Web
servers will understand it.


|
| I
| wonder if your convert -affine command under linux (which is really the only
| one that achives the effect) is using some other tricks to do its work.
| 
| I'd appreciate somebody could explain me this.
| 
| Thanks.
| _______________________________________________
| Magick-users mailing list
| [email protected]
| http://studio.imagemagick.org/mailman/listinfo/magick-users
  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   It's like being nibble to death by,.. Ah...
   feathers, long bills, webbed feet, go quck?    Molari -- Babylon 5
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to