<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Image quality worse compared to Adobe Reader"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=22138#c23">Comment # 23</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Image quality worse compared to Adobe Reader"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=22138">bug 22138</a>
              from <span class="vcard"><a class="email" href="mailto:stefantalpalaru@yahoo.com" title="Stefan Talpalaru <stefantalpalaru@yahoo.com>"> <span class="fn">Stefan Talpalaru</span></a>
</span></b>
        <pre>Even though it inherits from ImgWriter, MagickWriter does not write to a file.
Its only purpose is to facilitate the conversion to ImageMagick's data type for
use in Splash::bitmapToMagickImage() :

  writer = new MagickWriter();
  src->writeImgFile(writer, NULL, 0, 0);
  *dst = ((MagickWriter*)writer)->image;

This is how I was able to use writeImgFile() instead of duplicating the bitmap
type dependent logic for reading. The result is retrieved from the custom
"image" member of the MagickWriter object.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>