Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.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 7上将图像转换为字节数组无系统。是否以其他方式绘制Dll? Byte[]result=(Byte[])new ImageConverter().ConvertTo(img1,typeof(Byte[]); //我不能使用图像转换器添加图像类?绘图dll MemoryStream ms=新的MemoryStream(); 保存(ms,System.Drawing.Imaging.ImageFormat.Gif); 返回ToArray女士(); //无法看到系统。绘图dll,并且没有类似绘图的内容。映像。。。_Image_Windows Phone 7_Binary_System.drawing - Fatal编程技术网

在Windows Phone 7上将图像转换为字节数组无系统。是否以其他方式绘制Dll? Byte[]result=(Byte[])new ImageConverter().ConvertTo(img1,typeof(Byte[]); //我不能使用图像转换器添加图像类?绘图dll MemoryStream ms=新的MemoryStream(); 保存(ms,System.Drawing.Imaging.ImageFormat.Gif); 返回ToArray女士(); //无法看到系统。绘图dll,并且没有类似绘图的内容。映像。。。

在Windows Phone 7上将图像转换为字节数组无系统。是否以其他方式绘制Dll? Byte[]result=(Byte[])new ImageConverter().ConvertTo(img1,typeof(Byte[]); //我不能使用图像转换器添加图像类?绘图dll MemoryStream ms=新的MemoryStream(); 保存(ms,System.Drawing.Imaging.ImageFormat.Gif); 返回ToArray女士(); //无法看到系统。绘图dll,并且没有类似绘图的内容。映像。。。,image,windows-phone-7,binary,system.drawing,Image,Windows Phone 7,Binary,System.drawing,除了从源代码外添加dll,还有其他选择吗(我的意思是我将复制它,然后将其添加为外部dll)?我的项目在windows 7 phone应用程序中,不能像那样看到Drwaing.dll stj 谢谢首先,没有系统。请在WP7中绘制 您可以这样做: MemoryStream ms = new MemoryStream(); WriteableBitmap wb = new WriteableBitmap(myimage); wb.SaveJpeg(ms, myimage.PixelWidth, myi

除了从源代码外添加dll,还有其他选择吗(我的意思是我将复制它,然后将其添加为外部dll)?我的项目在windows 7 phone应用程序中,不能像那样看到Drwaing.dll stj


谢谢

首先,没有系统。请在
WP7
中绘制

您可以这样做:

MemoryStream ms = new MemoryStream();
WriteableBitmap wb = new WriteableBitmap(myimage);
wb.SaveJpeg(ms, myimage.PixelWidth, myimage.PixelHeight, 0, 100);
byte [] imageBytes = ms.ToArray();

首先,没有系统。在
WP7
中绘制

您可以这样做:

MemoryStream ms = new MemoryStream();
WriteableBitmap wb = new WriteableBitmap(myimage);
wb.SaveJpeg(ms, myimage.PixelWidth, myimage.PixelHeight, 0, 100);
byte [] imageBytes = ms.ToArray();

我假设当你键入“某物”时,你的意思是“某物”?你的问题似乎已经得到了回答:-我假设当你键入“某物”时,你的意思是“某物”?你的问题似乎已经得到了回答:-