Rank: Member
Groups: Member
Joined: 4/7/2007(UTC) Posts: 4
|
I would like to provide a user-controlled fade effect between two jpg images. Something like a slider control that would allow the user to move smoothly between image A and B.
I guess you would convert the images to a format with an alpha channel, then set the transparency of each based on the slider position, then draw them both on the bitmapviewer? Am I on the right track?
Any suggestions much appreciated.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
It is even simpler: you can use the DrawBitmap method and pass the opacity level into it. This article describes how to do it: Overlaying ImagesHope this helps. Edited by user Tuesday, December 15, 2009 10:42:26 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 4/7/2007(UTC) Posts: 4
|
Thanks Andrew - much simpler.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.