Jump to content
Xtreme .Net Talk

JohanPrinsloo

Members
  • Posts

    10
  • Joined

  • Last visited

About JohanPrinsloo

  • Birthday 08/17/1981

Personal Information

  • Occupation
    Systems Developer
  • .NET Preferred Language
    VB.NET

JohanPrinsloo's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Am I at least on the right track or waisting my time?
  2. Hi, should I use the following perhaps? But how? I am a bit lost... Public Declare Function AET60_ConvertBitmap Lib "AET60.dll" (ByRef SampleBuffer As FBITMAP, ByRef Length As Integer, ByRef bitData As Byte) As Integer Public Structure FBITMAP Dim Width As Integer Dim Height As Integer Dim Bitmap As fDataStructure End Structure Public Structure fDataStructure Dim Length As Integer Dim Data() As Byte End Structure
  3. Hi All Can someone tell me what is the difference between encryptbycert and EncryptByKey? I know with the one you uses the key and with the other one you just uses the certificate? But is that all? And which one would you prefer? Thanks
  4. That is correct. That is the device as well. And the same documentation I have.
  5. I also tried the following with the same results: The error also appear at System.Drawing.Image.FromStream. What am I doing wrong? What am I missing here? iRetcode = AET60_Capture(imgByte(0), iFpTemplateLength, iProcTimeOut) Dim image As Byte() = imgByte Dim memStream As MemoryStream = New MemoryStream(image) Dim bitImage As Bitmap = New Bitmap(System.Drawing.Image.FromStream(memStream)) bitImage.Save("C:\test.bmp")
  6. :confused: That is exactly what I'm trying to do. It's not yet in a specific format. All that I can see is a few numbers. Even in the function fConvertTo in the line objMS.Write(ImageArray, 0, ImageArray.Length) There is still something inside ImageArray. It depends which finger, ImageArray = {4,0,0,1,1.....}
  7. You did try the project properties where you set the icon? Assembly Name etc. Did you try another icon? Some of windows icons, just for the test?
  8. All other info there is: ?Err.Description "Parameter is not valid." and ?ae.GetBaseException {"Parameter is not valid."} System.ArgumentException: {"Parameter is not valid."} Data: {System.Collections.ListDictionaryInternal} HelpLink: Nothing InnerException: Nothing Message: "Parameter is not valid." Source: "System.Drawing" StackTrace: " at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) at System.Drawing.Image.FromStream(Stream stream) at SCARD_AUTH.frmSplash.fConvertTo(Byte[] ImageArray)" TargetSite: {System.Reflection.RuntimeMethodInfo} To answer you second quostion, no it is still far from a jpg. I am trying to convert it into a jpg. The fingerprintreader reads the fingerprint into the following var Dim imgByte(0 To 767) As Byte, and from there I am trying to convert it to a jpg.
  9. Hi all. This is the first time I'm working with the fingerprint scanner myself. I believe it kinda works the same as all the others, it reads your fingerprint into a byte array, then I need to convert it to a system image to put it into a picturebox, or save it on a harddrive as a jpg. I'm getting the error "Parameter is not valid." When I am trying to convert to image. Obviously I'm doing something wrong, and I'm not quite sure what. Can someone please help me in the right direction? Public Declare Function AET60_Capture Lib "AET60.dll" (ByRef Template As Byte, ByRef TemplateLength As Integer, ByVal TimeOut As Integer) As Integer Public iRetcode As Integer Private Sub sbCaptureFingerprint() Try Dim iProcTimeOut As Integer Dim iFpTemplateLength As Integer Dim tmpTemplate(0 To 767) As Byte iProcTimeOut = 60000 iFpTemplateLength = 768 Dim imgByte(0 To 767) As Byte iRetcode = AET60_Capture(imgByte(0), iFpTemplateLength, iProcTimeOut) PictureBox1.Image = fConvertTo(imgByte) Catch ex As Exception MsgBox(Err.Description, MsgBoxStyle.Critical, "Saving Image") End Try End Sub Public Overloads Function fConvertTo(ByVal ImageArray As Byte()) As System.Drawing.Image Dim objMS As New System.IO.MemoryStream objMS.Write(ImageArray, 0, ImageArray.Length) Try 'and this is where I get the error fConvertTo = System.Drawing.Image.FromStream(objMS) Catch ae As System.ArgumentException fConvertTo = Nothing End Try End Function
×
×
  • Create New...