Buenas, estoy experimentando por primera vez lo que sería programar para Android con delphi, estaba usando TCanvas y tengo dos problemas, uno para dibujar rectángulo y otro para dibujar las figuras, mi código es este:
Código Delphi
[-]Procedure CJuego.DibujarPieza(pant:Tcanvas;f: Integer; c: Integer);
var
rx,ry:integer;
letra:char;
figura:TBitMap;
begin
rx:=px+(c-1)*60;
ry:=py+(f-1)*60;
pant.Rectangle(rx,ry,rx+60,ry+60);
letra:=M[F,C];
figura:=TBitmap.Create;
if letra='P' then figura.LoadFromFile('C:\...\pared.bmp');
if letra='C' then figura.LoadFromFile('C:\...\pasto.bmp');
if letra='B' then figura.LoadFromFile('C:\...\bicho.bmp');
if letra='X' then figura.LoadFromFile('C:\...\caja.bmp');
if letra='x' then figura.LoadFromFile('C:\...\caja.bmp');
if letra='b' then figura.LoadFromFile('C:\...\bicho.bmp');
if letra='D' then figura.LoadFromFile('C:\...\Destino.bmp');
pant.Draw(rx,ry,figura);
end;
Los errores que me muestran son en
Código Delphi
[-]pant.Rectangle(rx,ry,rx+60,ry+60);
y en
donde dice que TCanvas no contiene un miembro llamado "rectangle" ni "draw"
Donde
en Windows todo funciona y corre perfectamente
He encontrado algunas opciones interesantes que son drawbitmap pero me pide datos distintos, quisiera conocer las alternativas de windows a android en rectangle y draw de tipo TCanvas, gracias de antemano
