{"action":"closed","issue":{"url":"https://api.github.com/repos/praeclarum/NGraphics/issues/84","repository_url":"https://api.github.com/repos/praeclarum/NGraphics","labels_url":"https://api.github.com/repos/praeclarum/NGraphics/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/praeclarum/NGraphics/issues/84/comments","events_url":"https://api.github.com/repos/praeclarum/NGraphics/issues/84/events","html_url":"https://github.com/praeclarum/NGraphics/issues/84","id":225105472,"number":84,"title":"Image from base64 string","user":{"login":"mprieur18","id":3032969,"avatar_url":"https://avatars2.githubusercontent.com/u/3032969?v=3","gravatar_id":"","url":"https://api.github.com/users/mprieur18","html_url":"https://github.com/mprieur18","followers_url":"https://api.github.com/users/mprieur18/followers","following_url":"https://api.github.com/users/mprieur18/following{/other_user}","gists_url":"https://api.github.com/users/mprieur18/gists{/gist_id}","starred_url":"https://api.github.com/users/mprieur18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprieur18/subscriptions","organizations_url":"https://api.github.com/users/mprieur18/orgs","repos_url":"https://api.github.com/users/mprieur18/repos","events_url":"https://api.github.com/users/mprieur18/events{/privacy}","received_events_url":"https://api.github.com/users/mprieur18/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-28T14:55:02Z","updated_at":"2017-05-03T12:17:11Z","closed_at":"2017-05-03T12:17:11Z","body":"Hi,\r\n\r\nI'm using NGraphics to create user's avatar in my Xamarin.Forms app. But I've an issue when I try to create an instance IImage from a MemoryStream created with a Base64 string. Here is my code :\r\n```csharp\r\nvar bytes = Convert.FromBase64String(Base64Image);\r\nusing(var ms = new MemoryStream(bytes))\r\n{\r\n     var img = Platform.LoadImage(ms);\r\n     canvas.DrawImage(\r\n          img,\r\n          new Rect(\r\n               new NGraphics.Rect(0, 0),\r\n               new NGraphics.Size(Width, Height)\r\n          )\r\n     );\r\n}\r\n```\r\nWhen I execute this code, NGraphics throw this Exception :\r\n\r\n> {System.ArgumentNullException: Value cannot be null.\r\nParameter name: image\r\n  at NGraphics.CGImageImage..ctor (CoreGraphics.CGImage image, System.Double scale) [0x0000c] in /Users/fak/Dropbox/Projects/NGraphics/Platforms/NGraphics.Mac/ApplePlatform.cs:138 \r\n  at NGraphics.ApplePlatform.LoadImage (System.IO.Stream stream) [0x00057] in /Users/fak/Dropbox/Projects/NGraphics/Platforms/NGraphics.Mac/ApplePlatform.cs:82 \r\n  at ... }\r\n\r\nIs there something I forgot?\r\n\r\nThanks :)"}}
{"actor":{"display_login":"mprieur18"}}