简体   繁体   English

位图未包含在 System.Drawing(控制台应用程序)中

[英]Bitmap not included in System.Drawing (Console Application)

I'm making an application for the console, which handles Bitmap images.我正在为控制台制作一个应用程序,它处理位图图像。 The problem I have is that System.Drawing seemingly does not include Bitmap .我的问题是System.Drawing似乎不包括Bitmap I already tried importing System.Drawing.Imaging but as I read, it is not available for .Net Core (not sure though...).我已经尝试导入System.Drawing.Imaging但正如我所读到的,它不适用于.Net Core (虽然不确定......)。

To use the System.Drawing objects in a Console Application you need to add the System.Drawing also to the references.要在Console Application使用System.Drawing对象,您还需要将System.Drawing添加到引用中。

  1. Go to the right menu of References转到右侧的References菜单
  2. Choice Add Reference...选择Add Reference...
  3. Select Assemblies选择Assemblies
  4. Check the System.Drawing检查System.Drawing

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM