Click to See Complete Forum and Search --> : logical coordinate question
eguy
June 29th, 1999, 10:56 AM
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.
June 30th, 1999, 01:40 AM
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
Jason Teagle
June 30th, 1999, 01:59 AM
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!
eguy
June 30th, 1999, 08:33 AM
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.
tangzibo
June 30th, 1999, 08:58 PM
hi,
I think you should use double or float as logical coordinate, and manager coordinate mapping yourself.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.