Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Nomlas  
#1 Posted : Tuesday, May 29, 2007 10:55:19 PM(UTC)
Nomlas

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.
Andrew  
#2 Posted : Wednesday, May 30, 2007 12:11:03 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 870

Thanks: 2 times
Was thanked: 26 time(s) in 26 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 Images

Hope this helps.

Edited by user Tuesday, December 15, 2009 10:42:26 AM(UTC)  | Reason: Not specified

Nomlas  
#3 Posted : Wednesday, May 30, 2007 10:55:26 PM(UTC)
Nomlas

Rank: Member

Groups: Member
Joined: 4/7/2007(UTC)
Posts: 4

Thanks Andrew - much simpler.
Users browsing this topic
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.