[DUG] Using TextOut with Graphics 32 package

Todd Martin toddm at kol.co.nz
Fri Feb 24 09:53:20 NZDT 2006


If you don't have any success with RenderText(), I suggest you download the Jedi code library and try using TJclBitmap32. You can assign a TBitmap and then use the object methods to draw lines/text etc over it.

Todd.
  ----- Original Message ----- 
  From: Stacey Verner 
  To: NZ Borland Developers Group - Delphi List 
  Sent: Friday, February 24, 2006 8:27 AM
  Subject: RE: [DUG] Using TextOut with Graphics 32 package


  I currently use RenderText as well, but I am not too happy with the results. Its usually a bit too blurry, or too sharp. Never quite right.

  A recent post on the graphics 32 newsgroup news.graphics32.org suggested using GDI+ to render to a TBitmap32 for text, thick lines etc.

  Look for the "Slow ellipses, even TCanvas drawing quicker!".

  You can also use normal canvas drawing with TBitmap32.Canvas, but you won't get antialiasing, or alpha channels.

  Stacey



------------------------------------------------------------------------------
  From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On Behalf Of Rob van der Linde
  Sent: Friday, 24 February 2006 0:37 a.m.
  To: grant at sitedoc.com.au; NZ Borland Developers Group - Delphi List
  Subject: Re: [DUG] Using TextOut with Graphics 32 package


  I use D7 and the latest version of Graphics32. I have had problems with TextOut on a TBitmap32 in the past too, where it would always draw a black box as the background underneath the text. I tried playing around setting the brush fill style and a few other things (this was a while back), but without luck.

  However, the RenderText method worked for me. RenderText renders nicer, but it is a little slower because it can use antialiasing. But you can set the level of antialiasing used, so it shouldn't really be a problem.

  RenderText is declared in the help file as:

  procedure RenderText( X, Y: Integer; const Text: String; AALevel: Integer; Color: TColor32); 



------------------------------------------------------------------------------


  _______________________________________________
  Delphi mailing list
  Delphi at ns3.123.co.nz
  http://ns3.123.co.nz/mailman/listinfo/delphi



------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060224/d05634ec/attachment-0001.html


More information about the Delphi mailing list