I am trying to use the FillRect method here:
FBuffer.FillRect(FBricks[i].X, FBricks[i].Y,
FBricks[i].X + FBricks[i].Width,
FBricks[i].Y + FBricks[i].Height,
FBricks[i].Color, dmSet, OPAQUE);
where FBuffer is defined
FBuffer : TBGRABitmap; ,
const OPAQUE = 65535and
FBuffer := TBGRABitmap.Create(BounceBox.Width, BounceBox.Height, BGRA(0, 0, 0, 255));But I get these compiler messages. The signature is there, but not being picked up.
unit1.pas(242,55) Error: Incompatible type for arg no. 7: Got "Word", expected "TPoint"
unibitmap.inc(3171,34) Hint: Found declaration: FillRect(LongInt;LongInt;LongInt;LongInt;IBGRAScanner;TDrawMode;TPoint;Word=`65535`);
unibitmap.inc(3156,34) Hint: Found declaration: FillRect(LongInt;LongInt;LongInt;LongInt;IBGRAScanner;TDrawMode;Word=`65535`);
unibitmapgeneric.inc(94,15) Hint: Found declaration: FillRect(LongInt;LongInt;LongInt;LongInt;const TBGRAPixel;TDrawMode=`0`;Word=`65535`);
bgracustombitmap.inc(1407,29) Hint: Found declaration: FillRect(LongInt;LongInt;LongInt;LongInt;IBGRAScanner;TDrawMode;TDitheringAlgorithm);Thanks for help with this.