TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: DANIEL CREERON
from: DAN LARSON
date: 1995-03-23 22:19:00
subject: OS/2 CO-ORDINATE SYSTEM

DC>I'm working on an imaging package and I need to have my co-ordinate system
DC>mimic Windows.  The OS/2 origin is the lower-left (true cartesian) while
DC>windows is the upper-left.

DC>My question:  "Does anyone know how to remap the origin to match
windows?"

DC>Is there a simple function call or series of calls to do this?  I've looked
DC>through about 5 or 6 books, the on-line docs, and more.  Can't figure it out

DC> Any help is greatly appreciated!

DC>- Daniel

Look at GpiTranslate() & related function to use a tranform maxtrix.  You could
esily apply a negative transform to all Y coords + an offset to get the desired
effect.

Sorry I don't have time for examples...
Get the redbooks, they will help in combination with the toolkit docs.


___
 * MR/2 1.52 NR * *Real* Trekkies work out at the He's Dead Gym.
--- Platinum Xpress/Wildcat! v0.9D
* Origin: Freezing Point BBS - WDNet HQ - Mpls MN - USR 28.8k (1:282/85)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 282/85 1031 1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.