Delphi GDI+测量用指定的 Font 对象绘制的指定字符串

来源:互联网 发布:阿里云短信发送api 编辑:程序博客网 时间:2024/05/16 01:58
procedure DrawShadowString(const g: TGpGraphics; const str: WideString;    const font: TGpFont; const origin: TGpPointF;    ShadowSize, Distance: LongWord; Angle: Single = 60;    ShadowAlpha: Byte = 192; const format: TGpStringFormat = nil); overload;beginDrawShadowString(g, str, font, g.MeasureString(str, font, origin, format),                   ShadowSize, Distance, Angle, ShadowAlpha, format);end;