Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 28-Aug-13 11:43am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900