CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Philippines
    Posts
    46

    Problem using MM_HIMETRIC mapping mode

    Good Day!
    For the time being, I'm using MM_LOMETRIC for my CDC object, and it works fine,
    but I need a fine-line-printing or higher resolution for my drawing that's why
    I have considered using MM_HIMETRIC.
    My print area extends up to 1000mm x 700mm (in paper size) which means, the
    CDC object must allow up to 100,000 logical units. Knowing the limitations
    of the GDI functions with accepting value bigger than 32767 and smaller than
    -32767 (Martin Speiser's info), does anybody has a suggestion or idea on how
    I can work-around this problem?
    Everything will be appreciated. Thanks.



  2. #2
    Join Date
    May 1999
    Posts
    123

    Re: Problem using MM_HIMETRIC mapping mode

    You've got three basic options:
    1) Restrict your app to Windows NT, in which case 100,000 logical units isn't a problem.

    2) Use MM_ISOMETRIC to create a mapping mode in which you have around 32 logical units per mm. This is about 30% finer resolution than most current printers, but not as fine as high-end publishing stuff.

    3) Creat your own logical units (probably in floating point) and do your own mapping from this to device units. This often isn't nearly as difficult as it sounds like.



    The universe is a figment of its own imagination.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured