在C#中,UIImage * anImate相当于什么?

时间:2011-12-11 04:18:34

标签: c# .net objective-c visual-studio windows-phone-7

在Objective-C中我可以执行以下操作并将UIImage(图像)对象传递给函数,例如:

+ (void)saveImageLocally:(NSString *)barcode theImage:(UIImage *)anImage;

C#中的等值是什么?

这个问题与Windows Phone编程有关。

2 个答案:

答案 0 :(得分:3)

您可能需要System.Windows.Media.Imaging.BitmapImage或其祖先之一(BitmapSourceImageSource)。

如果您想轻松访问图片的像素,则需要System.Windows.Media.Imaging.WriteableBitmap

答案 1 :(得分:0)

应该是:

void saveImageLocalley(string barcode, System.Drawing.Image theImage)

Normaly我们使用System.Drawing.Bitmap,它是Image的子类。

相关问题