Results 1 to 3 of 3

Thread: Adding Depth

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    USA
    Posts
    7

    Adding Depth

    I have a series of graphics and I want the images with lower bottom(Top + Height) values to appear closer to the screen(like I have a camera looking at them from just overhead on one side).

    In theory I want to do this even though I don't think I can:
    For x = 0 to NumberOfImages -1
    Image(x).ZOrder (Form.Height - Bottom(Image))
    Next x
    Then give all the background stuff a ZOrder above Form.Height

    Will something like this work? Is there another way of doing it?

    Thanks

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    the Z-order in the window tree in Windows is relative, and is front and back insertion sequence so you can only zorder a window to the front or back. Zorder method takes position as argument, 1 will send it back, 0 to the front.
    Sort an array of references of your images by Y-order then loop trough them and use Zorder methoid
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    USA
    Posts
    7
    Alright, thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width