-
April 5th, 2016, 03:25 AM
#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
-
April 5th, 2016, 03:52 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|