Hello
I wish if any body can help me with image processing in c#, I write the code to save image from buffering scan fingerprint in my computer and retrieve same image from my computer to buffering cache (roll), I make testing to see the image with picture box control, then I get different image with save and retrieve, I am try with many code like position and central and zoom nothing change.
The Code to show in picture box control and save in my computer
MemoryStream ms = new MemoryStream();
BitmapFormat.GetBitmap(g_FPBuffer, g_nWidth, g_nHeight, ref ms);
Bitmap bmp = new Bitmap(ms);
this.picbox1.Image = bmp;
picbox1.Image.Save(@"C:\ahmad\1.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
Link for image : <img src="http://s9.postimg.org/g7ts1mz1b/image.jpg" />
The Code to retrieve image from my computer to buffer cache in show in picture box control
Image img = Image.FromFile(@"C:\ahmad\1.jpg");
picbox1.Image=img ;
MemoryStream imageStream = new MemoryStream();
byte[] contentBuffer = new byte[imageStream.Length];
g_FPBuffer = contentBuffer;
g_FPBufferSize = imageStream.Read(contentBuffer, 0, contentBuffer.Length);
img.Save(imageStream, System.Drawing.Imaging.ImageFormat.Bmp);
Link for image : <img src="http://s23.postimg.org/tokizedy3/29_Aug_135908.jpg" />
How can retrieve the same image to buffer cache the same?
Thank for any help
Regards
Ahmad Ali