Search:

Type: Posts; User: ulillillia

Search: Search took 0.01 seconds.

  1. biWidth is a 4-byte data type, as I've stated, of...

    biWidth is a 4-byte data type, as I've stated, of which can easily fit 16 million. The file reading was not the problem, it was array overflow, as stated as well, due to the image being unexpectedly...
  2. It's only the width, height, and image data that...

    It's only the width, height, and image data that I need. Resolution, etc. are irrelevant. I use TGA files for any image needing 32-bit color, BMP files for any image needing 24-bit color since I...
  3. I was illustrating the concept which is why I...

    I was illustrating the concept which is why I went out to 4 bytes instead of 2. The biWidth elements in the struct are 4-byte "long" variables.

    However, I found the real problem: array overflow....
  4. TGA files use 2-byte data for the width and...

    TGA files use 2-byte data for the width and height elements. Interestingly, for years, I've had it like this, with numerous loads and reloads and this has never happened. Now that you've mentioned...
  5. fread reads incorrectly - negative 16 million for 2-byte read

    This doesn't make any sense. Why is fread returning -16 million when only 2 bytes are supposed to be read, and only when the image's width is over 256 pixels. A 1024x85 image reads correctly, but...
Results 1 to 5 of 5