*System.PlatformNotSupportedException:** 'Operation is not supported on this platform.'

Ahmed Wassim BEN SALEM (ENISo) 241 Reputation points
2021-04-22T13:29:42.76+00:00

Hello Guys ,
So i tried to run this game in xamarin forms ,
but when i try compile : System.Drawing.Bitmap mybitmap = new System.Drawing.Bitmap(img2); it raise that exception does anyone know what is the problem ?

90403-capture.png

Developer technologies | .NET | Xamarin
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Michael Taylor 61,111 Reputation points
    2021-04-22T13:37:08.43+00:00

    The docs say that the value you're passing is is either not a valid image format or null. So what type of image is image? Why are you typecasting it to a byte array earlier in the code?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.