Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
可写映像到Windows Phone的BitmapImage_Image - Fatal编程技术网

可写映像到Windows Phone的BitmapImage

可写映像到Windows Phone的BitmapImage,image,Image,我在可写图像转换方面有问题 我创建了一个WriteableImage来处理它的pixcel,然后我想用WriteableImage数据创建一个BitmapImage,但没有成功。。。windows phone不支持某些功能 有什么想法吗,有人?位图并不像我们通常期望的那样是可写位图的只读版本。来自BitmapImage文档:BitmapImage可用于引用JPEG和PNG文件格式的图像 因此,进行转换的唯一方法可能是使用WriteableBitmap.SaveJpeg保存在内存流中,然后通过Se

我在可写图像转换方面有问题

我创建了一个WriteableImage来处理它的pixcel,然后我想用WriteableImage数据创建一个BitmapImage,但没有成功。。。windows phone不支持某些功能

有什么想法吗,有人?

位图并不像我们通常期望的那样是可写位图的只读版本。来自BitmapImage文档:BitmapImage可用于引用JPEG和PNG文件格式的图像

因此,进行转换的唯一方法可能是使用WriteableBitmap.SaveJpeg保存在内存流中,然后通过SetSource将其加载到BitmapImage。这不是一个好的实践,所以如果可能的话,我会一直使用可写位图并避免转换