WriteImage Question
Posted: 2008-06-05T19:29:14-07:00
Hello,
Why does WriteImage require an ImageInfo structure argument? From what I understand, ImageInfo is to be used for reading because there is no information on an image before reading it.. but why does WriteImage need one? Everything should be set in the Image structure argument should it not? Or does writing copy the Image structure to the ImageInfo structure? Or does it completely neglect ImageInfo if Image is valid?
As you can see, I'm pretty confused by it at the moment. I have it working but I'm just not sure if my image->quality is getting registered.. I'm currently giving a value of 80 to the ImageInfo structure passed to WriteImage but am not changing the image's quality.. What should I do?
Doing this with MagickCore 6.4.1.
Help appreciated,
Jon
Why does WriteImage require an ImageInfo structure argument? From what I understand, ImageInfo is to be used for reading because there is no information on an image before reading it.. but why does WriteImage need one? Everything should be set in the Image structure argument should it not? Or does writing copy the Image structure to the ImageInfo structure? Or does it completely neglect ImageInfo if Image is valid?
As you can see, I'm pretty confused by it at the moment. I have it working but I'm just not sure if my image->quality is getting registered.. I'm currently giving a value of 80 to the ImageInfo structure passed to WriteImage but am not changing the image's quality.. What should I do?
Doing this with MagickCore 6.4.1.
Help appreciated,
Jon