Solved

System.Drawing in XNA

Posted on 2011-03-22
1
603 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now