from raw buffer to tiff

::Guy::

New member
Joined
Dec 5, 2006
Messages
1
Programming Experience
Beginner
Hi everyone,

I'm programming an application in VB.net that is gonna be used to readout a camera, and the save the image to the Hard drive. All very basic, but the image i can read from the camera is 16bit raw graylevel information... :confused: (meaning i have a big 2d buffer with all my 16bit pixel information in it)

Does anyone now how i can transform this to a 16 bit non compressed tiff file, or to a jpg just to get started ?

Thanks alot,

Guy
 
Are you sure the buffer is 2D? The byte data for Bitmap images are one-dimensional layed out in accordance with pixelformat and stride, with additional info about image width and height. You may have to create a new Bitmap with pixelformat Format16bppGrayScale, use Lockbits and transfer the data by writing the bytes into this.
 
Back
Top