Revision history for KeyPgPmap


Revision [22560]

Last edited on 2019-02-06 08:16:32 by fxm ['ScreenRes 640, 480' rather than 'Screen 12' in example to explicit the window resolution]
Additions:
screenres 640, 480
Deletions:
screen 12 '' resolution: 640x480


Revision [22559]

Edited on 2019-02-04 14:44:39 by fxm [Added a comment on the first line of the example]
Additions:
screen 12 '' resolution: 640x480
Deletions:
screen 12


Revision [21079]

Edited on 2016-03-13 09:08:30 by fxm [Formatting]
Additions:


Revision [20441]

Edited on 2016-02-10 16:06:29 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **PMap** ( [[KeyPgByval|byval]] //coord// [[KeyPgAs|as]] [[KeyPgSingle|single]], [[KeyPgByval|byval]] //func// [[KeyPgAs|as]] [[KeyPgLong|long]] ) [[KeyPgAs|as]] [[KeyPgSingle|single]]
This function converts a coordinate between view (as defined by the ##[[KeyPgWindow|Window]]## statement) and physical (as set by the ##[[KeyPgViewgraphics|View (Graphics)]]## statement) mappings. Depending on the value of ##//func//##, ##//expr//## is used to compute a different mapping to be returned by ##**PMap**##:
- ##[[KeyPgWindow|Window]]##
- ##[[KeyPgViewgraphics|View (Graphics)]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **PMap** ( [[KeyPgByval byval]] //coord// [[KeyPgAs as]] [[KeyPgSingle single]], [[KeyPgByval byval]] //func// [[KeyPgAs as]] [[KeyPgLong long]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
This function converts a coordinate between view (as defined by the ##[[KeyPgWindow Window]]## statement) and physical (as set by the ##[[KeyPgViewgraphics View (Graphics)]]## statement) mappings. Depending on the value of ##//func//##, ##//expr//## is used to compute a different mapping to be returned by ##**PMap**##:
- ##[[KeyPgWindow Window]]##
- ##[[KeyPgViewgraphics View (Graphics)]]##


Revision [17529]

Edited on 2015-04-01 12:29:31 by DkLwikki [integer => long]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **PMap** ( [[KeyPgByval byval]] //coord// [[KeyPgAs as]] [[KeyPgSingle single]], [[KeyPgByval byval]] //func// [[KeyPgAs as]] [[KeyPgLong long]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **PMap** ( [[KeyPgByval byval]] //coord// [[KeyPgAs as]] [[KeyPgSingle single]], [[KeyPgByval byval]] //func// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgSingle single]]


Revision [16975]

Edited on 2013-11-01 16:07:00 by CountingPine [Formatting; provide expected results in example]
Additions:
This function converts a coordinate between view (as defined by the ##[[KeyPgWindow Window]]## statement) and physical (as set by the ##[[KeyPgViewgraphics View (Graphics)]]## statement) mappings. Depending on the value of ##//func//##, ##//expr//## is used to compute a different mapping to be returned by ##**PMap**##:
print "Logical x=50, Physical x="; pmap(50, 0) '' 320
print "Logical y=50, Physical y="; pmap(50, 1) '' 240
print "Physical x=160, Logical x="; pmap(160, 2) '' 25
print "Physical y=60, Logical y="; pmap(60, 3) '' 12.5
Deletions:
This function converts a coordinate between view (as defined by the ##[[KeyPgWindow Window]]## statement) and physical (as set by the ##[[KeyPgViewgraphics View (Graphics)]]## statement) mappings. Depending on the value of ##//func//##, ##//expr//## is used to compute a different mapping to be returned by PMAP:
print "Logical x=50, Physical x="; pmap(50, 0)
print "Logical y=50, Physical y="; pmap(50, 1)
print "Physical x=160, Logical x="; pmap(160, 2)
print "Physical y=60, Logical y="; pmap(60, 3)


Revision [12562]

The oldest known version of this page was created on 2008-02-13 08:26:06 by JeffMarshall [Formatting; provide expected results in example]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode