在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,并且没有类似绘图的内容。映像。。。
除了从源代码外添加dll,还有其他选择吗(我的意思是我将复制它,然后将其添加为外部dll)?我的项目在windows 7 phone应用程序中,不能像那样看到Drwaing.dll stj在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
谢谢首先,没有系统。请在
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();
我假设当你键入“某物”时,你的意思是“某物”?你的问题似乎已经得到了回答:-我假设当你键入“某物”时,你的意思是“某物”?你的问题似乎已经得到了回答:-