0

I'm trying to follow this model (Set default user profile picture to an image of their initials) but my solution doesn't recognize these [usings]:

using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Drawing.Text;

I want to apply this in my xamarin forms project but I also tried on a simple PLC NET Framework but the error is the same. Can you help me?

Note: I use the same solution with 2 projects - 1 xamarin forms and other PLC Net Framework.

  • 1
    Did you add the references? Keep in mind that a namespace can be spanned across multiple assemblies – Alex Jan 10 '18 at 15:34
  • 1
    Hi, welcome to stack overflow. Please never post screen shots of text as they are not searchable. Instead add them to your question formatted as code – Spangen Jan 10 '18 at 15:35
  • @Alex yes, the problem is these using: [code]using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.Drawing.Text;[code] Aren't recognized and I don't understand why – Jose Pires Jan 10 '18 at 15:48
  • @Spangen, Ok, sorry this mistake. Thank you – Jose Pires Jan 10 '18 at 15:52

1 Answers1

1

Work around: you can use SkiaSharp for drawing image.

Artem Tishchenko
  • 330
  • 1
  • 13