gif file generated by saving ink from an InkDisp looks HORRIBLE! RRS feed

  • Question

  • I am creating a gif file from my Ink data by calling the Save function in
    InkDisp, passing the IPF_GIF format and the IPCM_NoCompression option.  When I display this gif image, the quality is poor. The curves look aliased, with  white as the background color, which looks horrible -- especially when the ink is over images in the background that are darker.  I've tried turning the aliasing off and on in the drawing attrributes, as well as smoothing, and the RasterOperation (various settings, but not all) and it doesn't appear to help.
    Saturday, October 28, 2006 12:05 AM


  • Hi Steve:

    It looks like you got an answer to this from Josh Einstein in the Tablet PC Developer Newsgroup. I'll repost Josh's reply here for everyone's benefit.

    That's just a limitation of the GIF data type. Remember, GIF is an indexed
    color format that can only display 256 colors and has *no* per-pixel
    transparency. That's why antialiasing actually makes the ink look worse.

    The best way would be to render the ink to a bitmap and save it as an alpha
    blended png. I don't have a sample of this off hand but hopefully it points
    you in the right direction.

    Josh Einstein / Tablet PC MVP
    Einstein Technologies, LLC

    Thanks Josh!

     - Mark Hopkins (MSFT)

    Thursday, November 2, 2006 8:36 PM