x


I use c# and have a problem about namespace System.Drawing!

using System.Drawing;

I edit references and add System.Drawing in it!

Monodevelop have no problem!

But why unity3d have error:

Assets/showpicture.cs(6,14): error CS0234: The type or namespace name Drawing' does not exist in the namespaceSystem'. Are you missing an assembly reference?

I have System.Drawing in the project's references !Why? Do unity3d not support this namespace ? And how to make a stream with picture to a texture by unity3d?

more ▼

asked Sep 28 '11 at 02:46 AM

noob22 gravatar image

noob22
48 42 47 49

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

System.Drawing is not supported. As far as I know you can only use Texture/Texture2D classes.

more ▼

answered Sep 28 '11 at 08:22 PM

sven1994 gravatar image

sven1994
291 2 3 10

But you can initialize a Texture and SetPixel onto it.

Sep 28 '11 at 08:59 PM BerggreenDK
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4174
x263
x67
x15
x6

asked: Sep 28 '11 at 02:46 AM

Seen: 1868 times

Last Updated: Sep 28 '11 at 08:59 PM