将C#Xamarin.forms.image转换为CGImage

时间:2017-10-06 13:41:49

标签: c# xamarin cgimage

我正在尝试将Xamarin.forms.image转换为CoreGraphics.CGImage。

void saveImg(Xamarin.Forms.Image image)
    {

        CoreGraphics.CGImage CGImage = (CoreGraphics.CGImage)image;
    }

虽然这不起作用......

错误消息:"无法转换类型' Xamarin.Forms.Image' to' CoreGraphics.CGImage' "

转换此图片的方法是什么?

0 个答案:

没有答案