I have been trying to reverse engineer a small hardware scanning device. The vendor has a DLL with a function called "GetImageDa ta" that I've been executing in VB.NET
It is defined as below:
Right after calling the function I execute the following:
Which always returns an Array of 8192 bytes (regardless of the width, height). After looking at the byte array I noticed only following 10 numbers re-occurring:
Byte - # occurrence in array
63 -> 3894
0 -> 2677
32 -> 592
255 -> 313
64 -> 302
96 -> 221
160 -> 81
134 -> 71
192 -> 65
48 -> 21
This is typical with each scan with some variation in the counts.
I am assuming that it returns some sort of BITMAP image. Possibly black and white with representation of how dark or light each pixel is? Anybody have an idea what type of image is being returned, or how I can go about displaying the data that comes back as an image?
It is defined as below:
Code:
GetImageData(imageData_out as String, pWitdh as Uinteger, pHeight as Uinteger) as Boolean
Right after calling the function I execute the following:
Code:
Text.ASCIIEncoding.Default.GetBytes(imageData_out)
Byte - # occurrence in array
63 -> 3894
0 -> 2677
32 -> 592
255 -> 313
64 -> 302
96 -> 221
160 -> 81
134 -> 71
192 -> 65
48 -> 21
This is typical with each scan with some variation in the counts.
I am assuming that it returns some sort of BITMAP image. Possibly black and white with representation of how dark or light each pixel is? Anybody have an idea what type of image is being returned, or how I can go about displaying the data that comes back as an image?
Comment