Click here to Skip to main content
15,923,120 members

Comments by completeknowitall (Top 3 by date)

completeknowitall 18-Jan-16 14:48pm View    
You are right. I have learned from you.
I owe you, I owe you money.

Thank you.
completeknowitall 5-Jan-16 17:04pm View    
sorry, I thought it was obvious ( I guess it never is ) I'm trying to copy pixel data pixel by pixel from one bitmap to another using the scanline funtion. the line:

Sbyte = (TRGBTriple *) Source->Scanline[y];

assigns the pointer to the correct line (i guess) and the line

Dbyte[x] = Sbyte[x];

should transfer RGB data to the destination bitmap. however, my debugger shows that

Sbyte[0] ... Sbyte[2] contain all 0x00
(or rather '\0' because it thinks it's a char *)

I was hoping someone with exp. in scanline could point out the "obvious" mistake I made.
completeknowitall 5-Jan-16 16:44pm View    
Deleted
sorry, I thought it was obvious ( I guess it never is ) I'm trying to copy pixel data pixel by pixel from one bitmap to another using the scanline funtion. the line:

Sbyte = (TRGBTriple *) Source->Scanline[y];

assigns the pointer to the correct line (i guess) and the line

Dbyte[x] = Sbyte[x];

should transfer RGB data to the destination bitmap. however, my debugger shows that

Sbyte[0] ... Sbyte[2] contain all 0x00
(or rather '\0' because it thinks it's a char *)

I was hoping someone with exp. in scanline could point out the obvious mistake I made.