Jump to content

Physical coordinate system

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
AJlxuMuk

AJlxuMuk

    Newbie

  • Members
  • Pip
  • 2 posts
WIN32API:
I'm learning GDI programming.
What is the difference between the physical coordinate system and device coordinate system? I want to see examples, please.
Best regards.

#2
marwex89

marwex89

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 10,720 posts
The logical coordinate system is the coordinate system of your device context. You can define your own logical coord system using functions like SetViewportOrg(), SetWindowOrg(), SetMapMode() and what not.

The device coordinate system is the coordinate system used for your device. Your screen might for example have a coordinate system of 800x600 pixles (lol) or 1680x1050 pixles. This can also be changed (change screen resolution).

I guess this is what you mean by physical coordinate system. The real physical coordinate system is however the native resolution of your screen (or printer or whatever) and can not be changed.
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#3
AJlxuMuk

AJlxuMuk

    Newbie

  • Members
  • Pip
  • 2 posts

marwex89 said:

The logical coordinate system is the coordinate system of your device context. You can define your own logical coord system using functions like SetViewportOrg(), SetWindowOrg(), SetMapMode() and what not.

The device coordinate system is the coordinate system used for your device. Your screen might for example have a coordinate system of 800x600 pixles (lol) or 1680x1050 pixles. This can also be changed (change screen resolution).

I guess this is what you mean by physical coordinate system. The real physical coordinate system is however the native resolution of your screen (or printer or whatever) and can not be changed.
Thanks, this is I needed.

#4
marwex89

marwex89

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 10,720 posts
No problem ;)
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa