Ronan Thibaudau
Ronan Thibaudau

Reputation: 3603

Write image as 32 bit per channel (128 bit per pixel) bitmap from .net

I generate HDR images at runtime which I need to save in perfect quality (I'm chaining those images through multiple filters so I want to keep maximum fidelity each time to avoid too much quality loss).

I'm saving those with the bitmap class using the PixelFormat.Format32bppArgb, I found a 64 bit format too but no 128bit ones in the list (for 32 bit per channel X 4 channels).

What is the correct way to save an array of colors consisting of 4 float components with no loss? Any image format is fine as long as I can do it from .NET (third party libs are OK if built in doesn't support it).

I'm looking for a pure .net solution preferably (no wrappers around unmanaged code / unmanaged libs to interop to).

Upvotes: 5

Views: 1699

Answers (1)

Ani
Ani

Reputation: 10906

ImageMagick (http://www.imagemagick.org/script/high-dynamic-range.php) supports HDR images.

You can use ImageMagick.NET (http://imagemagick.codeplex.com) as .NET bindings.

Hope this helps!

Upvotes: 2

Related Questions