Link to home
Start Free TrialLog in
Avatar of scott007
scott007

asked on

Graphics question

How can I display a bitmap on top of another bitmap and allow the user to drag and drop the first bitmap around.  I'd also like to attach text to the first bitmap  that would be visible all the time.
Avatar of ZifNab
ZifNab

Hi scott007,

007?

Maybe you could introduce a Z-order? e.g. Place your bitmaps in an array... array[0..1] ..

array[0] is bitmap one
array[1] is bitmap Two

Now you always know which one is behind the other.....

Regards, Zif.

Avatar of scott007

ASKER

Also, how can I tell which Bitmap is the one selected.  So far, I end up with one bitmap with many pictures on it...not many layered bitmaps.
Yo,
where do you want the text to be ? Ontop of the bitmap, underneath ? Should the text be transparent ?
Because of the Z-order, you could also stick on the Z-order Windows provides with the creation order.

Slash/d003303
The text could be in different places on the bitmap and it should be transparent.  I'm not really sure what you mean by Z-order.  I'll have to look that up somewhere.
Z- Order ? Easy :

You've got an X and Y axis;

for 3D you've need an Z-Axis -> Z-ORDER.


ASKER CERTIFIED SOLUTION
Avatar of ssite
ssite

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial