Well, in about 10 hours I'll probably be in bed counting bytes to catch some sleep... so I remind you now...Originally Posted by CVMichael
My app reads a large file (ca. 10 Mb) and then plots the contents in a bitmap. I've implemented a part of the code in VC++ to make it faster -and it really is.
The actual plotting is handled by SetDIBitsToDevice, which is perhaps what you had in mind. However, this part is in VB (I'm using somene else's code that I found in the forum) so,
(1) I'd like to know if it can improve in terms of speed by converting it to VC++ and
(2) I'm not sure I'm able to transpose (rotation = flip + transposition) the array of bytes:
MyByteArray(NBytes)
where the overall number of bytes is
NBytes = Rows * (3 * Cols + DBytes)
DBytes is the number of dummy bytes at the end of each row (so all rows are divisible by 4) like
RGBR GBRG B000
RGBR GBRG B000
RGBR GBRG B000




Reply With Quote