Search results

  1. R

    create bitmap image from byte array

    Anyone? Help is greatly appreciated
  2. R

    create bitmap image from byte array

    OK here we go. There is no problem reading the type one and type two records, combined they have a length of 355 bytes, which is assigned to 'Basestart'. The third record that i am looking at is a type 4 fingerprint image: Field 1 gives the record length of 474739 assigned to 'Type4size'...
  3. R

    combining bytes

    don't think so in the standard it read that field 9 (after the 18 bytes) is: 11.1.9 Image data This binary field shall contain all of the highresolution grayscale image data. Each pixel of the uncompressed image shall be quantized to eight bits (256 gray levels) contained in a single byte...
  4. R

    combining bytes

    I don't believe so, i'm creating a viewer to view the images from a file, i know for definate that this file meets the standard. The first two record types in the file are ASCII data, record one has byte length 247 and record two has length 108, which equals 373. The next record is the one...
  5. R

    combining bytes

    The four bytes i'm trying to read are the size of the record that i am looking at, 1933444864 gives a record bigger than the file! When writing the bytes out: For i = 0 To 3 Console.WriteLine(binaryData(i)) Next it prints the bytes as 0 7 62 115 474739 seems correct. As the image...
  6. R

    create bitmap image from byte array

    Thanks That seems to work, however i am now getting an error on: Dim Finger As New Bitmap(ms) saying "invalid parameter used" Although i have a feeling i maybe looking at the wrong set of bytes
  7. R

    combining bytes

    This is the code i am now using to combine 4 bytes into 32 bits, the 4 input bytes are 0, 7, 62 and 115, which when put together to 32 bits becomes 474739, however in the code it becomes 1933444864. Does anyone notice anything wrong in the code or am i calculating it wrong? inFile = New...
  8. R

    create bitmap image from byte array

    Here is the code changes just using filestream and not binaryreader. From what i understand of bitmap, it only takes memorystream, so i am trying to use s1.read to read the image into the byte array and then ms.write to write it to the memorystream, (i cannot use s1 for the binary as the image...
  9. R

    create bitmap image from byte array

    Here is the code that i am using for the memorystream but i keep getting the error that an invalid paramater has been used. s1 = New FileStream(FILE_NAME, FileMode.Open, FileAccess.Read) ms = New MemoryStream(769166) br = New BinaryReader(s1) br.BaseStream.Seek(373, SeekOrigin.Current) Dim...
  10. R

    combining bytes

    Probably a simple answer, but i can't find it. I am working with binary data and need to combine 2 bytes and read the value of the 16 bits between 0-65635. Any help is appreciated
  11. R

    create bitmap image from byte array

    I am using a data file that contains ASCII and binary data, seperated in to records, the first two records are ASCII which i have no problem reading using system.io.filestream The third record is a binary black and white image, i need help creating a new bitmap from this data and displaying it...
Top Bottom