Hi,
I want draw BGRABitmap on canvas with some offset, but Draw and DrawPart are ignoring X and Y params (even if I use overloaded method with TRect instead of X/Y). Is this a bug or are they for something else (I thought that they working similar like X,Y offset in TBGRABitmap.PutImage method)? This is my test code:
procedure TForm1.FormPaint(Sender: TObject);
var
b: TBGRABitmap;
r: TRect;
begin
b := TBGRABitmap.Create(100,100);
r := b.ClipRect;
b.Rectangle(b.ClipRect,clblack);
b.Draw(Self.Canvas,200,200,False);
b.Free;
end;
Rectangle should be offset by 200,200 but it always start from 0,0.
I have stable BGRABitmap 5.6, FPC 2.6.0 Stable, Lazarus 0.9.31 from SVN builded on QT interface
BTW: Why code=pascal doesn't highlight pascal syntax any more on this forum? I noticed this when forum get new layout/engine.
Regards, Dibo