Grayscale values
Graphics
2
Posts
2
Posters
0
Views
1
Watching
-
I have a third party dll that is written in C++ that saves a bitmap image as the actual grayscale values and not a Bitmap format. I am looking for a way to read in the grayscale values and convert them to use C#/.NET 's Bitmap class. Thanks
I'm guessing you mean something like : file: 256, 0,0 ,12,25,89.. val_n.. etc...EOF (for a 16X16 image) then the easiest way (C#) is to read the values into program then create a bitmap and read the values into pixels as:
Bitmap.SetPixel(X,Y, Color.FromRGB(val_n,val_n,val_n));
iterate and save bitmap done.