none
Windows Store应用如何翻转BitmapImage RRS feed

  • 问题

  • 在做一个触控换图片程序,图片有翻转的,开始通过Projection和RenderTransform实现,两种方法翻转的都是Image,而且手势区分也容易混淆,能不能把BitmapImage翻转过来,直接赋给Image啊。
    2014年7月1日 9:42

答案

  • 可以读取到Image的每个像素点,然后做矩阵翻转,把新的Pixel Array赋值给图片。

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    2014年8月27日 14:36
    版主