#1 2016-10-12 11:02:06

Fritz
Member
Registered: 2015-05-08
Posts: 13

Mapmodes

Hello i have fixed the mappings for MM_LOMETRIC, MM_HIMETRIC in TPdfEnum.ScaleMatrix
With these changes it is well working in both modes

  MM_LOMETRIC: begin
// Using FFactor because the FScreenLogPixels from TPdfDocument is not in Scope here
        FViewSize.cx :=  round(7200  / FFactor); 
        FViewSize.cy := - round(7200 / FFactor);
        FWinSize.cx :=  25400 ;
        FWinSize.cy :=  25400 ;
      end;
  MM_HIMETRIC: begin
        FViewSize.cx :=  round(7200  / FFactor);
        FViewSize.cy := - round(7200/ FFactor);
        FWinSize.cx :=  254000 ;
        FWinSize.cy :=  254000 ;
      end;

Fritz

Offline

Board footer

Powered by FluxBB