was ist neu ¦  programmier tips ¦  indy artikel ¦  intraweb artikel ¦  informationen ¦  links ¦  interviews ¦  sonstiges ¦  forum
 kylix ¦  tutorials ¦  online shop ¦  fotos ¦  Add&Win Gewinnspiel

Tips (1565)

Dateien (139)
Datenbanken (91)
Drucken (35)
Grafik (116)
IDE (21)
Indy (5)
Internet / LAN (133)
IntraWeb (0)
Kylix (10)
Mathematik (77)
Multimedia (46)
Oberfläche (113)
Objekte/
ActiveX (51)

OpenTools API (3)
Sonstiges (128)
Strings (83)
System (268)
VCL (246)

Tips sortiert nach
Komponente


Tip suchen

Tip hinzufügen

Add&Win Gewinnspiel

Werbung

36 Visitors Online


SwissDelphiCenter is a Borland Technology Partner
 
...den Font Smoothing/anti-aliasing ausschalten?
Autor: Andy
[ Tip ausdrucken ]  

Tip Bewertung (4):  
     


{THIS IS THE FUNCTION I NEEDED AND THEREFORE USED }
{CONVERSELY, BY REMOVING 'NON' OFF THE lfQuality  }
{IT CAN BE MADE INTO ENABLEFONTSMOOTHING          }

procedure TForm1.DisableFontSmoothing(LabelName: TLabel);
var
  
tagLOGFONT: TLogFont;
begin
  
GetObject(LabelName.Font.Handle, SizeOf(TLogFont), @tagLOGFONT);
  tagLOGFONT.lfQuality  := NONANTIALIASED_QUALITY;
  LabelName.Font.Handle := CreateFontIndirect(tagLOGFONT);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  
DisableFontSmoothing(Label2);
end;


 

Bewerten Sie diesen Tipp:

dürftig
ausgezeichnet


Copyright © by SwissDelphiCenter.ch
All trademarks are the sole property of their respective owners