Bitmap Reflection with "standing on surface" effect

All your problems with Audio, Video and Images.

Bitmap Reflection with "standing on surface" effect

Postby nithdi » Thu Dec 23, 2010 6:16 pm

Hi,

I'm currently struggling around with a huge problem.

The Situation:
I get a bitmap via network (TCP Sockets) using BitmapFactory.decodeStream. After receiving it, I create a new bitmap and do a reflection of the original image (with half the size and going to transparent).

What I want to do:
The main thing is already done: Programmatically doing the reflection works very nice and looks good, but it doesn't look like the image would stand on a surface. Now I thought it would look better, if I stretch the bottom of the reflection a little bit. That would look like the reflection "comes nearer" and it would look like I want it to.

Let me show you what I mean:
Image


What is the best way to do this? Does it work using a matrix?
I mainly used the code at here: http://www.inter-fuser.com/2009/12/android-reflections-with-bitmaps.html for the reflection.

Thanks in advice.

Greets
nithdi
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Dec 23, 2010 6:01 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 19 guests