CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2016
    Posts
    1

    How can I convert a BMP to TIFF image without using any library

    Hi,
    I am developing a solution for a hardware device in pure C.

    I need to compress an image BMP and thought in using the TIFF format (the image is monochromatic), the problem is how to convert from BMP to TIFF without using any external libraries.

    Anyone can help

    Thanks

    Miguel

  2. #2
    Join Date
    Oct 2008
    Posts
    1,456

    Re: How can I convert a BMP to TIFF image without using any library

    obviously you need to get and read the documentation of each file format you want to support ( eventually limiting your code to a subset of the file format facilities, omit format checking, etc... in order to simplify the code, to what extent is up to you and your requirementes ).
    This can be as simple as jumping to a fixed file offset and copy the data ( this is the case of uncompressed BMP from a known source, AFAIR ) or as complex as writing/testing a full decompression algorithm ( for the TIFF case ), as said, it depends on your requirements ...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured