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

    logical coordinate question

    Hi all:

    I'm writing a drawing application that will run under Win95,
    I need to draw line that is up to 30m or lower to 0.01mm length
    with the application. So, I need 32bits logical coordinate I think,
    but in win95, logical coordinates is 16bits signed int.

    How can I do it,plz?

    Thanks for any suggestion.



  2. #2
    Guest

    Re: logical coordinate question

    If it's right what you say about the 16 bits (I'm not an expert) I think
    you have to separate the data from the graphics - like in an Doc/View-architecture. You can't display that bandwidth anyway.
    Hope that helps



  3. #3
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: logical coordinate question

    Why on *EARTH* would you want to draw a line 30m long? I'm afraid if you can't fit it into a logical size of 32767, there is nothing you can do. You should think about scaling it down to a representative size!



    --
    Jason Teagle
    [email protected]

  4. #4
    Join Date
    Jun 1999
    Posts
    2

    Re: logical coordinate question

    I want my application has the capability of scrolling and scaling(zoom in
    and zoom out).
    With 16 bits logical coordinate, I need to represent logical space from -30m
    to 30m in its x-axis, so one logical unit nearly map to 1mm. But, It's
    really not precise enough .
    I hope one logical unit can map to 0.01mm, so user can zoom in the graphic
    to view or Modify the details.

    BTW:Sometimes I really need output graphics up to 30 meters long with pen plotter.


  5. #5
    Join Date
    Apr 1999
    Posts
    37

    Re: logical coordinate question

    hi,
    I think you should use double or float as logical coordinate, and manager coordinate mapping yourself.


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