Skewing a bitmap only in the vertical direction

前端 未结 3 1351
被撕碎了的回忆
被撕碎了的回忆 2020-12-15 11:45

I want to skew (correct me if this is not the correct word) a bitmap so that it appears to have depth. A good way to visualize what I am asking for is how the credits of Sta

3条回答
  •  庸人自扰
    2020-12-15 12:04

    You cannot achieve the effect you want with skew(). However, you can use a Camera object and 3D rotations to achieve this effect. The Camera will generate a Matrix for you that you can then apply on the Canvas. Note that the result will not be perspective correct, but good enough for your purpose. This how 3D rotations are done in Honeycomb's Launcher for instance (and many other apps.)

提交回复
热议问题