随笔 - 2146  文章 - 97 评论 - 11767 trackbacks - 253


问题来源: http://www.cnblogs.com/del/archive/2010/01/09/1643019.html#1746542

procedure TForm1.FormPaint(Sender: TObject);
var
  x,y: Integer;
  str: string;
begin
  x := 10;
  y := 10;
  str := '今天';
  Canvas.Font.Name := '黑体';
  Canvas.Font.Size := 56;

  Canvas.Brush.Style := bsClear; { ! }

  Canvas.Font.Color := clBlue;
  Canvas.TextOut(x, y, str);

  Canvas.Font.Color := clWhite;
  Canvas.TextOut(x-3, y-3, str);
end;

posted on 2010-01-14 09:58  万一  阅读(...)  评论(...编辑  收藏