TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jeff Patten
from: Daniel Creeron
date: 1995-03-27 16:43:24
subject: OS/2 Co-ordinate System

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

 JP>    Doesn't the difference amount to an offset in the y-
 JP> axis?  Presumably you could just add (or subtract, as 
 JP> appropriate) the screen height to convert between the 
 JP> two.

Thanks for the reply Jeff.  I've thought of this but it gets a bit
difficult for what I am trying to do.  The images I'm displaying are broken
into bands and each band is display seperately.  Without knowing how many
bands there are I'd have to write a good deal of code to handle this. 
 
In windows there is the SetExtent and SetViewport functions that can be
used for origin remapping.  I figured something like this must exist in
OS/2 and it would make my life much easier. 
 
Again, thanks for the reply. 
 
- Dan



--- Maximus 2.02
* Origin: The Repair Shop BBS Serving Worcester County Since 1985 (1:322/744)
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: 322/744 572 3615/50 396/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™.