how to display finger image on VB6 application

N

NishCA

Hello..
I have got finger image data as raw pixel data scan lines from the top,
left to the bottom, right. Also, have image height & width in pixels;
BPP is avail.
I need to display this image data on VB application & have don't have
much experience in VB development, can some-one please help me in
displaying image data as bitmap or if i can save this data in .bmp file.

Thanks
 
A

Armin Zingler

NishCA said:
Hello..
I have got finger image data as raw pixel data scan lines from the
top, left to the bottom, right. Also, have image height & width in
pixels; BPP is avail.
I need to display this image data on VB application & have don't
have much experience in VB development, can some-one please help me
in displaying image data as bitmap or if i can save this data in
.bmp file.

You can use one overload of the Bitmap constructor:

Public Sub New(ByVal width As Integer, ByVal height As Integer, ByVal stride
As Integer, ByVal format As System.Drawing.Imaging.PixelFormat, ByVal scan0
As System.IntPtr)


You will probably have to be very carefull with the pointer (scan0). You get
it by creating a GC handle (GCHandle) using GCHandle.Alloc, then call
AddrOfPinnedObject of the returned object. Don't destroy it (by calling the
GCHandle's Free method) before the Bitmap is disposed. ..... I'm assuming
you have the pixel data in a byte array or similar. If you already have the
IntPtr, forget what I wrote.


Armin
 
R

rowe_newsgroups

Hello..
I have got finger image data as raw pixel data scan lines from the top,
left to the bottom, right. Also, have image height & width in pixels;
BPP is avail.
I need to display this image data on VB application & have don't have
much experience in VB development, can some-one please help me in
displaying image data as bitmap or if i can save this data in .bmp file.

Thanks

*** Sent via Developersdexhttp://www.developersdex.com***

You should note you posted in the wrong newsgroup (judging from your
header).

If you are dealing with VB6 you need to post to the
comp.lang.basic.visual.misc newsgroup and not this one, which is
dedicated to Visual Basic .NET (VB 2002, VB 2003, VB 2005, VB 2008).

Thanks,

Seth Rowe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top