I’m trying some stuff with maxScript and Dotnet GDI+.
Basically, I’m processing png images.
These images are 16 bits images.
Whatever I try, and I tried a lot of different stuff, read the articles here as well.
So if I simply get the image and save it as png again, it’s saved in 8bits and loses a lot of information.
– here is how I get the image :
myImage = dotNetObject “System.Drawing.Bitmap” Imagepath
myImage = (dotNetClass “System.Drawing.Image”).fromFile Imagepath
– and how I save it :
I tried to create a new DrawingBitmap with a different pixelFormat,
Draw my Source image in it, and save…same problem.
I start to think there is no way to do that correctly in Dotnet, but it seems so simple that I think I miss something.
Any Idea ?