Problems with .NET Tiff C #

I'm having problems with tiff

Here is what I need to do, we have tiff images stored in the database, these CCITT4 images are compressed using several required tags, including:

RowsPerStrip must be ImageLength

Photometric Interpretation Must Be MinIsWhite

Multi-line image format not allowed

My problem is that I use the built-in System.Drawing.Bitmap / Image objects, which change the values โ€‹โ€‹of these values, when I put them in the object, I checked this by saving the byte [] to tiff directly from the database, checking the tags, they are beautiful. But when I put the bytes in the Image object and then save to a file, they change.

To make matters worse, I need to add text to the image before saving it.

So, I need a component that will allow me to control more with TIFF (and they should be tiff), and also be able to add text to the image or be able to use the Graphics object.

I tried using LibTiff, but I have not yet seen examples of using this component, any suggestions?

+3
source share
4 answers

I have never used the built-in System.Drawing.Bitmap objects for this. I personally use LeadTools , but it is not free. It is, however, a reliable and fairly simple API. I mainly use it for GEOTiff, which contains specific data tags for image location data.

60- , .

+2

LibTiff.Net. BSD. 2.0 .

, , TIFF TIFF-, , , System.Drawing.Bitmap TIFF- CCITT.

+3

FreeImage. #.NET.

0

IEvolution, HiComponents, ( ) - http://www.hicomponents.com. .NET.

0

Source: https://habr.com/ru/post/1756006/


All Articles