Menu

#5 Multiple Image Formats

open
nobody
None
4
2006-08-25
2006-08-14
Alan Pierce
No

Currently, STIHRS only supports Windows BMP files. It
would be nice to be able to support at least JPEGs.
Other image formats that should be added are TIFF, GIF,
and PNG.

Discussion

  • Alan Pierce

    Alan Pierce - 2006-08-25
    • priority: 5 --> 4
     
  • oldspammer

    oldspammer - 2006-09-22

    Logged In: YES
    user_id=1602727

    Libtiff, Libjpeg, and class CPictureHolderEx( ), LibPNG.

    http://www.google.com/search?
    num=20&hl=en&lr=&newwindow=1&q=CPictureHolderEx

    http://www.libpng.org/pub/png/ LibPNG.

    The CPictureHolder( ) base class of CPictureHolderEx( ) can
    load a file from disk. Supported formats are GIF, jpg,
    etc. It can also display it for you too in a dynaically
    resizable window control.

    The base class CPictureHolder( ) is part of Win32 and MFC.

    All MS Windows users already hold a license to use the LZW
    compression by virtue of all of the DLLs that handle them
    like those used by Java / JVM / JIT compiler (since Java
    natively handles GIF images by the AWT - abstract windows
    toolkit, and other import libraries from Sun like the Java
    IO Image class), and MS Internet Explorer, and possibly
    Kodak / Windows Imaging that handles TIF viewing / Fax
    viewing. MS Office owners have the MS Picture Editor in /
    with Word 95, and Word 97 (and possibly newer versions too).

    As long as your application can call an existing installed
    function on your user's system, your software should be
    fine. Just don't install any extra LZW stuff for your own
    software to use and you should be OK legally.

    MFC C++ software example code for use of some of this is
    probably just a Google search away on the codeguru or
    codeproject's web sites. If the licenses are free, you're
    in, however, if not you can base your ideas on this code,
    or if the author only wants some credit then, git it to
    them if they saved you enough time.

     

Log in to post a comment.

MongoDB Logo MongoDB