Ver Mensaje Individual
  #5  
Antiguo 14-08-2007
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Reputación: 20
cHackAll Va por buen camino
Yo personalmente haría algo como ésto:

Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
var
 Bitmap: TBitmap;
 Index: Cardinal;
 ASCII: array[0..255] of Byte;
begin
 Index := High(ASCII);
 repeat Dec(Index);
  ASCII[Index] := Index + 1;
 until Index = 0;
 Bitmap := TBitmap.Create;
 Bitmap.Height := 64;
 Bitmap.Canvas.Font.Name := 'Comic Sans MS'; // es TrueType
 Bitmap.Canvas.Font.Size := 24;
 Bitmap.Width := Bitmap.Canvas.TextWidth(PChar(@ASCII)) + 16;
 Bitmap.Canvas.TextOut(8, 8, PChar(@ASCII));
 Bitmap.SaveToFile('c:\image.bmp');
 Bitmap.Destroy;
end;

Sin embargo me suena algo raro escuchar TrueType + ASCII
Responder Con Cita