Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
21. Aug 2011
Thanks :) Cureently I will use helper, looks to be simpler :)
Maybe in next 10 yeras Emb* will decide to add this property to their class :(
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
21. Aug 2011
I don't understand too much, you mean I should write new class with this function inside? I alread made helper class, but need to set property before render text.
I see Delphi disallow add fields in helpers, very bad :(
If I create extended font class TFontEx = class(TFont), how to use it in canvas?
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
21. Aug 2011
begin
with TBitmap.Create do
begin
SetSize(100, 100);
Canvas.Brush.Color := clWhite;
Canvas.Pen.Color := clBlack;
Canvas.FillRect(BoundsRect);
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
20. Aug 2011
Hm, for me don't working, ClearType is as was.
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
20. Aug 2011
I already did it, Arial. Do you mean problem is with font?
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
20. Aug 2011
I'm using TCanvas.TextOut() to output text on bitmap. Attached image better describe problem (please zoom it).
Simply, I want to text in pen color (green) without this terrible effect (red).