English 中文(简体)
外勤人员 视窗使用FJCore和银灯
原标题:FieldAccessException When Using FJCore with Silverlight for Windows Phone 7

我发现,这家伟大的银星图书馆基本上是一个平衡港,因此,我都被击退。 图书馆从SVN repo下载(http://fjcore.googlecode.com/svn/trunk/), 我成功地建造了图书馆,并提到了这一点。 DL改为我的视窗7项目。 在成功建造我的WP7项目时,在使用推器时,该申请发生错误,我从未看到过:

现场接收未经处理。 - 系统,Reflection.Emit.OpCodes.Ldarg_1

原始法典中的银灯例子奏效。 这个例子打开了“开放式档案”的方言,并根据所选择的内容对图像进行了重新定位。 不幸的是,我在WP7项目中可以采用同样的准则。 WP7级不支持“Open file”方言。 图书馆只是使用一个通用镜头,因此Im从一个照片ChooserTask完成的活动中转来。

我为什么会发现这一错误以及如何纠正错误?

我的WP7应用必须改变形象。 毕竟,谁想要等待在3G网络上重载5个MP图像? 我知道我肯定没有。

感谢!

UPDATE - Solutions found for resizing an pornography on WP7 on appthread (not UI thread)

protected Stream ResizeImage(WriteableBitmap tempBitmap, int maxEdge)
{
    WriteableBitmap wb = tempBitmap;

    // Resize to Max Values...
    Size widthHeight = GetMaxWidthHeight(wb.PixelWidth, wb.PixelHeight, maxEdge);
    Stream resizedStream = new MemoryStream();
    wb.SaveJpeg(resizedStream, (int)widthHeight.Width, (int)widthHeight.Height, 0, 90);
    return resizedStream;
}
最佳回答

因为你无法在工作计划7中使用反思(DLR)。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签