Hello,
I have a TBitmap or TPaintBox and I scanline to get pointer to first line...
Code:
ps0 := DWORD(bm1.scanline[0]);
Then I have
Code:
type TRGBColor = Integer;
var pFirstByte:DWord;
MyColor: TRGBColor;
MyColor:= how to make the cast to get the color in integer?
This is just for comparison of colors, the order of bytes is not important here.