user2102508
user2102508

Reputation: 1019

C#: Is it possible to save Bitmap to GIF and JPEG without lossy compression?

I want to save a Bitmap object with all the pixels to GIF and JPEG formats, but without loosing quality at all, so the Bitmap could be loaded back from GIF and JPEG and processed again. I believe that both GIF and JPEG can be encoded without lossy compression, but is it possible to do with .NET? If so how can I do it?

Upvotes: 0

Views: 185

Answers (1)

Ivan I
Ivan I

Reputation: 9990

No, GIF and JPEG loose information by their respective file format definition and it isn't .NET dependent. You may use some lossless file format that still uses compression like PNG.

Upvotes: 1

Related Questions