-
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
-
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
-