procedure TForm1.Button2Click(Sender: TObject);
var
b:TBitmap;
begin
b:=TBitmap.Create;
b.width:=100;
b.height:=100;
b.Canvas.brush.Color:=clRed;
b.Canvas.pen.Color:=clRed;
b.Canvas.Rectangle(rect(0,0,100,100));
B.Canvas.Font.COLOR:=$00fFFF;
B.Canvas.Font.Size:=24;
b.Canvas.TextOut(10,10,'AAA');
b.Canvas.brush.style:=bsClear;
B.Canvas.Font.COLOR:=$FF0000;
B.Canvas.Font.Size:=24;
b.Canvas.TextOut(15,10,'AAA');
canvas.Draw (0,0,b);
b.free;
end;