|
-
Aug 1st, 2001, 12:57 PM
#1
Thread Starter
New Member
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
-
Aug 1st, 2001, 01:49 PM
#2
transcendental analytic
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.
-
Aug 1st, 2001, 02:12 PM
#3
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|