我如何添加“System.Drawing.dll”的引用?在Windows 8商店应用程序开发? [英] How Could I add refrence of "System.Drawing.dll" in windows 8 store app development?

查看:85
本文介绍了我如何添加“System.Drawing.dll”的引用?在Windows 8商店应用程序开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用抛出System.Drawing.Bitmap的代码我已经编写了下面的代码。



I am using a code that throws a System.Drawing.Bitmap I have written the code below.

public void grab()
       {
           VideoFileReader reader = new VideoFileReader();
           reader.Open(@"C:\\Users\\Zam\\Videos\\Becky G.mp4");
          int FR= reader.FrameRate;

           int x=0;
           while (x < reader.FrameCount)
           {
               var image= reader.ReadVideoFrame();
//or
              System.Drawing.Bitmap bmp =reader.ReadVideoFrame();
// further process on this image 
               }





行reader.readVideoFrame()返回一个位图,我试图用两种方式使用上面的方法捕获它,但它会生成以下给定的错误消息。请帮我这个。



程序集'mscorlib中的基类或接口'System.MarshalByRefObject',Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 '引用类型'System.Drawing.Image'无法解析c:\ Windows \ Microsoftoft.NET\Framework\v4.0.30319\System.Drawing.dll



the line reader.readVideoFrame() returns a bitmap and I tried to catch it using above given both ways but it generates below given error message. Please help me with this.

The base class or interface 'System.MarshalByRefObject' in assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' referenced by type 'System.Drawing.Image' could not be resolved c:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Drawing.dll

推荐答案

我不是为Win 8 Store开发的,但我读过你只能使用它支持的库,而System.Drawing 不是其中之一。请参阅:[ ^ ]



Win 8商店应用程序的Windows.Graphics.Imaging库中似乎有等效的位图工具:[ ^ ]。



使用该库处理成像的教程:[ ^ ]。



请查看Win 8 Store应用程序中的文章:[ ^ ]。



您可以在CP上访问Windows8 / RT论坛:[ ^ ],虽然目前交通量很少。
I am not developing for Win 8 Store, but I have read you can only use its supported libraries, and System.Drawing is not one of them. See: [^]

There appear to be equivalent bitmap facilities available in the Windows.Graphics.Imaging library for Win 8 Store apps: [^].

Tutorial on processing imaging using that library: [^].

Do examine the articles here on Win 8 Store apps: [^].

You might visit the Windows8/RT forum here on CP: [^], although it has little traffic at present.


这篇关于我如何添加“System.Drawing.dll”的引用?在Windows 8商店应用程序开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆