#1 2019-05-30 14:35:37

Atys
Member
Registered: 2016-04-02
Posts: 13

PlayEnhMetaFile / Screen DC on lower resolutions

I'm trying to draw metafiles with "PlayEnhMetaFile" on SynPDF's VCLCanvas and somehow the images in my metafile are not drawn if they are vertically below the displays Y resolution. For example, the A4 page has at 96 DPI a height of 1124, the display has a height of 768 or 800 pixels, the metafile should be drawn at 770 in a height of 120, the images are missing from the result. Textst are drawn but "EMR_STRETCHDIBITS" won't be called in the GDI Enum.

On Printer Canvas no problems, on bigger display with bigger resolution the same code is working.

Any help/hint would be greatly appreciated.

Regards

Offline

#2 2019-06-01 06:01:09

EvaF
Member
Registered: 2014-07-19
Posts: 40

Re: PlayEnhMetaFile / Screen DC on lower resolutions

did you draw with

  with TGDIPages.create(self) do
  begin
    .. 
    ForceScreenResolution := true;
    ..
  end;

?

Offline

#3 2019-06-01 06:14:09

Atys
Member
Registered: 2016-04-02
Posts: 13

Re: PlayEnhMetaFile / Screen DC on lower resolutions

No.
I don't know what TGDIPages nor ForceScreenResolution is.

SynPDF.pas

Offline

#4 2019-06-02 16:55:01

Atys
Member
Registered: 2016-04-02
Posts: 13

Re: PlayEnhMetaFile / Screen DC on lower resolutions

Offline

Board footer

Powered by FluxBB