How to reduce the size of an image in C# and .NET 3.5?

后端 未结 7 1534
忘掉有多难
忘掉有多难 2020-12-05 16:10

I have a screen shot I take in my mobile app. The screen shot takes about 32 KB when saved as a png on a disk.

I am sending these to a central SQL Server and 32 KB

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 16:47

    If monochrome image is acceptable, you can try TIFF G4 (lossless compression). TIFF G4 is known for being very effective in file size to store black and white image. Unfortunately I dont have any info available on how it compares to PNG, but worth investigating into it.

    Here is the info and example on how to do it in C#

提交回复
热议问题