【发布时间】:2014-11-23 11:44:06
【问题描述】:
我试过了:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using AviFile;
using ScreenShotDemo;
using System.Threading;
using System.Windows.
在我的新课程中,但在底部的 system.Windows 中。 没有媒体
我正在使用 Visual c# pro 2012 和 .net 4.5 尝试将其添加为参考,在 .net 和 COM 中查找它,但它不存在。
我需要它的原因是在我的代码中我有 PixelFormat 但它不存在:
Bitmap bmpScreenShot = new Bitmap(currentScreen.Bounds.Width,
currentScreen.Bounds.Height,
PixelFormat.Format32bppArgb);
PixelFormat 不存在。
【问题讨论】:
-
看起来你实际上并没有使用来自
System.Windows.Media的任何东西。 -
您似乎想要混合使用 WPF (
System.Windows.Media) 和 WinForms (System.Drawing) API。你确定要这样做吗?你的其余代码让我怀疑你根本不想使用System.Windows.Media。
标签: c#