News for hackers. Stuff that matters.
Re:Lessons Learned while Converting from ASP.NET to .NET Core by cm2187 on Tuesday September 06, 2016 @02:22AM (#12433950)
No, my understanding of .Net core is that this is also the way they want to get back on devices. I think Xamarin will ultimately be based on .net Core. And for a mobile app, you bet you need a way to manipulate images.

Even for websites, depends on what sort of websites you do, but I often need to display charts, so being able to generate images on the fly.

Re:Lessons Learned while Converting from ASP.NET to .NET Core by eberkund on Tuesday September 06, 2016 @02:40AM (#12434005)
Why are you generating images on the fly to display a chart? Why not send the data points and render a chart clientside using JavaScript? There are plenty of libraries for that.
Re:Lessons Learned while Converting from ASP.NET to .NET Core by moron4hire on Tuesday September 06, 2016 @07:28AM (#12435175)
A lot of clients want native PDF output for their reports. None of the PDF generating libraries I know of support running JS. So if you want the same charts in both, you need to generate the images server side.
Re:Lessons Learned while Converting from ASP.NET to .NET Core by cm2187 on Tuesday September 06, 2016 @02:58AM (#12434086)
I am sure there are other ways but I found using the native datavisualization library very useful and simple to use. I am one of these guys who do as little javascript as necessary.
Re:Lessons Learned while Converting from ASP.NET to .NET Core by nikbackm on Tuesday September 06, 2016 @02:44AM (#12434025)
> generate images on the fly

Isn't SVG or canvas more suitable for that on the web?

Re:Lessons Learned while Converting from ASP.NET to .NET Core by cm2187 on Tuesday September 06, 2016 @03:01AM (#12434096)
If you want to draw the chart from scratch perhaps but I use a library to generate the chart then send it as an image to the client. Very few lines of code required in .net, no javascript required.
Re:Lessons Learned while Converting from ASP.NET to .NET Core by ygra on Tuesday September 06, 2016 @05:05AM (#12434533)
You don't need JS to generate SVG server-side either ...
Re:Lessons Learned while Converting from ASP.NET to .NET Core by taspeotis on Tuesday September 06, 2016 @03:33AM (#12434222)
Indeed, but there's still a heavy focus on web applications.

I have written a few commercial cross-platform applications with Xamarin. They deal with images - and System.Drawing would not have been helpful to me. iOS has UIImage and Android has Bitmap.