I want to build a simple Xamarin app that can draw shapes with editing handles. I can then drag and drop the handles to edit the shapes. This can be done with Syncfusion image editor controls but the shapes I wanted are not available.
Can anybody give me some clue about what should I do? Or point me to an open-source project?
Shape examples
SkiaSharp is a 2D graphics system for .NET and C# powered by the open-source Skia graphics engine that is used extensively in Google products. You can use SkiaSharp in your Xamarin.Forms applications to draw 2D vector graphics, bitmaps, and text.
You can refer to the tutorials in the following link:https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/graphics/skiasharp/basics/
Related
I am developing a project (kinda like CamScanner) where I take an image and on the fly crop it and edit it and save it to my device memory. I chose to do it in xamarin forms because of 1 source maintenance. I have managed to take the image using Xam.Plugin.Media and crop that image using ImageCropper.Forms plugins. Now, I cant seem to find any good plugins that can edit my image (Filters like Black and White, Magic Color, Grayscale). Can anyone guide me to choose which plugin is the best there is for the filter? I am focusing mainly on Android and iOS at the moment.
Thanks in advance
As of today, there is no plugin available to apply color filters for Xamarin.Forms. The closest thing would be using SkiaSharp Color Filters and define you own Color Matrices, which is not quite user friendly.
In Xamarin Forms if you want to create animations quickly you can call any of the animation extension methods such as TranslateTo(x, y), etc according to:
https://developer.xamarin.com/guides/xamarin-forms/user-interface/animation/simple/
But they don't seem to cover everything. For example on the above link, I don't see:
A method to animate the background color?
A parameter to specify the easing factor?
What are the other animation limitations in Xamarin Forms API, compared to the full iOS and Android animation capabilities?
The "simple" ones are just the easy extension methods to do basic things. If you want the full control you need to use the animation class. There is even a background colour example a few pages below yours:
https://developer.xamarin.com/guides/xamarin-forms/user-interface/animation/custom/
Is there currently any full widget toolkit providing components rendering in WebGL only? Similar to the ZebraUI project, which renders a full UI component set in HTML5 canvas?
The idea is to write pure JavaScript, and still be able to shaders to render the components.
There is a new open source project which supports complete rendering of all widgets using WebGL: The DreemGL toolkit. Here is a screenshot of a DreemGL application. All UI elements are rendered using WebGL (including fonts). It's still alpha or beta quality.
I have to make an app with 2d drawing for Windows RT. I don't know how can achieve that. Drawing with xaml is not a option, because I have to draw it at run time, and the content of graphic will varies. I am looking for something like android's View and it's onDraw() method, Is that possible?
In my WPF application, I need to draw a line chart which draws a line with an animation. The best solution I've found yet, is to use Devexpress tool which provide all what I need and much more but it's quite expensive and I guess it won't fit my budget.
I also tried to do it with WPF toolkit and AMChart but I can't find any way to animate the drawing of the line on the chart.
Is it possible to set an animation or to create one and assign it to chart (from WPF toolkit or Amchart) ?
The aim is to draw the line like if I was drawing it slowly on the chart.
For this project I'm using Visual Studio 2012, WPF, .NET 4.0, C#.
Thanks in advance.
You can use Animation Libraries that exist in WPF. For example by using DoubleAnimation, you can do any animation at your project.