#1 2020-07-07 18:42:34

shmpg
Member
Registered: 2020-07-07
Posts: 3

Gdip.DrawAntiAliased draws lines un-anti-aliased

Using the function Gdip.DrawAntiAliased for an EMF file results in a rendering where lines are always drawn un-anti-aliased.

Additionally, whatever parameter I set for aTextRendering, text is always rendered anti-aliased.

Using the primitives to draw results in a good rendering.

Stefan

Offline

#2 2020-07-09 13:06:53

shmpg
Member
Registered: 2020-07-07
Posts: 3

Re: Gdip.DrawAntiAliased draws lines un-anti-aliased

After some more testing I have the impression that the library does not use the improved code of GDIP but uses the fallback of the default Windows EMF renderer.

Could this be possible, any insight on how I might test this?

This is the code I use (In Delphi 10.3):

  Gdip := TGDIPlusFull.Create();
  MF := TMetaFile.Create;
  MF.Transparent := True;
  MF.LoadFromFile(EMFFilename);
  Bmp := Gdip.DrawAntiAliased(MF,100,100,smAntiAlias,trhAntiAlias);

Greetings,
Stefan

Offline

Board footer

Powered by FluxBB