Ver Mensaje Individual
  #2  
Antiguo 23-11-2007
Avatar de Delphius
[Delphius] Delphius is offline
Miembro Premium
 
Registrado: jul 2004
Ubicación: Salta, Argentina
Posts: 5.582
Reputación: 25
Delphius Va camino a la fama
Hola amigo Carlos, por el momento está en BETA, pero para ser chapuza anda:

Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
// creo el bmp y lo asocio al timage
var bmp: TBitmap;
begin
 bmp := TBitmap.Create;
 bmp.Height := 100;
 bmp.Width := 100;
 Image1.Picture.Bitmap.Assign(bmp);
end;

Código Delphi [-]
procedure TForm1.Image1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
// guardo la posición
begin
  XX := X;
  YY := Y;
end;

Código Delphi [-]
procedure TForm1.Image1Click(Sender: TObject);
// y pinto una X en el lugar
begin
Image1.Picture.Bitmap.Canvas.Font.Size := 15;
Image1.Picture.Bitmap.Canvas.Font.Color := clRed;
Image1.Picture.Bitmap.Canvas.TextOut(XX,YY,'X');
end;

recuerda que para que funcione esto debe ser un bitmap. Y que debe tener alguno asignado.

Saludos,
__________________
Delphius
[Guia de estilo][Buscar]

Última edición por Delphius fecha: 23-11-2007 a las 04:01:43. Razón: etiquetas delphi
Responder Con Cita