Replies: 1 comment 1 reply
-
In Windows 10 you can scale each display different. I changed the original code: procedure TPrintPreview.CreateMetafileCanvas(out AMetafile: TMetafile;
out ACanvas: TCanvas);
begin
AMetafile := TMetafile.Create;
try
with ScaleToDeviceContext(ReferenceDC, FDeviceExt) do
begin
Replacement:
procedure TPrintPreview.CreateMetafileCanvas(out AMetafile: TMetafile;
out ACanvas: TCanvas);
var aDC:HDC;
begin
AMetafile := TMetafile.Create;
try
aDC:=ReferenceDC;
if aDC=0 then
aDC:=FPaperView.Canvas.Handle;
with ScaleToDeviceContext(aDC, FDeviceExt) do
begin Hope this helps someone. Regards |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions