Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>abs_to_y()</b> g_exam08 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ABS_TO_Y()                                                          G_EXAM08
   Returns the Y value of the logical pixel position on the screen.

   Syntax
         nN = ABS_TO_Y(nPixel,nType)

   Arguments
         nType       Sets the type of coordinate system.
                     0 - World coordinate system.
                     1 - Axis scale coordinates.
                     2 - Screen coordinate upper-left (0,0) to Lower-right
                         (100,100).
         nPixel      Sets the absolute pixel position.

   Returns
         nN          Returns the value of the logical pixel position on the
                     screen.

   Description
         ABS_TO_Y() returns the world coordinate value, Y axis value, or
         screen coordinate value of the logical pixel position on the
         screen. nType determines what value will be returned.

         Type 0: the screen location based on the world coordinates. The
         default world values for the upper left corner are 0,0. The lower
         right corner of the screen is 100,100.

         Type 1: the relative position on the graph based on the X,Y
         scale position. If the Y-axis scale was from 0 to 10 units, then
         ATY(5,1) would return a physical pixel location on the Y scale at
         Y equal to 5.

         Type 2: the position based on coordinates (0,0) for upper left and
         (100,100) for lower right for the entire screen.

See Also: ABS_TO_X() ATX() ATY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson