Solved

System.Drawing in XNA

Posted on 2011-03-22
1
613 Views
Last Modified: 2012-05-11
Hello experts,

I am writing a simple game for Win7 for mobile phones using XNA.

I try to re- use file with methods created for software working in Windows environment.

I added it to my XNA project but following lines give me error messages:

using System.Drawing;
using System.Windows.Forms;

I get error: "The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference?)

What do I do wrong?
Maybe it is not possible to use these namespaces in XNA application?

Thank you

panJames
0
Comment
Question by:panJames
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 35196431
You can't use System.Drawing for XNA because part of its target is the XBox which does not support those libraries.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question