



keylimepai wrote:Off the top of my head, it seems like the way to do it would be something like:
* Take the representation of the "image" that you want to mirror (either directly or from the canvas)
* Decide how much of the image you want to reflect under it, and create a new, say, Bitmap to hold it
* Copy the starting image onto the top of the this new image, and then use a transform/clip to copy the reflected part to the bottom
* Create a gradient from full alpha to fully transparent from the line of the reflection to the new bottom of the image
There are probably better ways to do it, but I think this will work, at least for a static reflection.

keylimepai wrote:Off the top of my head, it seems like the way to do it would be something like:
* Take the representation of the "image" that you want to mirror (either directly or from the canvas)
* Decide how much of the image you want to reflect under it, and create a new, say, Bitmap to hold it
* Copy the starting image onto the top of the this new image, and then use a transform/clip to copy the reflected part to the bottom
* Create a gradient from full alpha to fully transparent from the line of the reflection to the new bottom of the image
There are probably better ways to do it, but I think this will work, at least for a static reflection.

pjq wrote:Thanks for your suggestion.
Additionaly,it is not a static image.The numble in the image will be changed.
Actually,I want to know which relation functions I can used to do the work.
Anyone have idea about this?
Any suggestions will be appreciated.

reflectionLine
reflectionSize
bitmap.getPixels(reflectData, 0, 1, 0, reflectionLine - y, bitmap.getWidth(), 1);




Return to View, Layout & Resource Problems
Users browsing this forum: No registered users and 5 guests