How can we achieve Skeleton Joint Mapping feature in Xamarin Forms - c#

In web, ImageMapster (jQuery Plugin) allows us to activate HTML complex image maps like Skeleton Joints Mapping
How can we achieve this functionality in Xamarin Forms ?
Please check the demo link.
Skeleton Joint Mapping Demo Using ImageMapster

You can use box views or geometry to display and hide from the layout when the user selects that part of the body. Since you already have the code of the HTML, you could figure out the dimensions of the image that is rendered and use that scale to figure out exactly where to place the red box.
Looks pretty cool btw

Related

How to use a .pgm image file as a custom map in Mapsui

I am developing a wpf app for controlling a ROS based robot. And I want to show a map from the robot in the UI using Mapsui. Currently I am using canvas to display the map so when I have a lot of waypoints and other indicators on the map, it's messy. And the manipulation and touch support is terrible.
I have came across this. But it involve tile structuring which is not okay for my project as I will just be getting a only.pgm file from the robot.
Is there a way I can just display the .pgm file as the background like I do in the canvas and then use layers and other good features of Mapsui on top?
The current version (Mapsui 3.0.0) has no support for .pgm. You could build your own IProvider for that. This could be based on the SharpMap code to load a .pgm.

Draw on Video Xamarin

Using Xamarin, I am trying to implement the feature that allows a user to draw on top of a video. Note that the drawing doesn't need to be saved.
I would like some input on what the best way of implementing this. My initial though would be to create a drawable custom view that when the user clicks the draw icon, the current frame of the video is passed to that drawable view.
This seems like a pretty great plugin, which I could use to create a custom view https://github.com/martijn00/XamarinMediaManager.
Would really appreciate any help or suggestions :)

Show Leaflet images in C# app

I have a Leaflet website that uses a custom tile set for a game map.
I want to display in my C# client app, tiles from the Leaflet map using basically the same algorithm, as if re-creating leaflet in C#.
I already have the placeholder tiles layed out in a grid and have basic navigation, but running into the problem of knowing the tile values to use for the URL (from leaflet docs):
'http://map.somedomain.com/{layer}/{z}/{x}/{y}.png'
I have the layers names, and I want to know the exact X,Y for each tile from a provided zoom level.
How can I calculate this so that when I send out a download request it doesn't hit file not found?
Hope that makes sense.
Thank you.
PS: I don't have access to windows forms, I am using Unity3D engine, if that makes a difference.
I think you would be best off by going over the sourcecode of L.GridLayer which L.TileLayer is extended from. The _pruneTiles function would be a good starting point:
https://github.com/Leaflet/Leaflet/blob/master/src/layer/tile/GridLayer.js#L204
You Can find a tutorial for embedding Leaflet in a C# app in this book:
Leaflet.js Essentials - Chapter 6

Write Text ontop of an Image dynamically in ASP.NET MVC3

How would I write Text ontop of an image, and if possible, at an angle.
So, the box is the origional image. 64x64 for example.
And I want to write text on it for example test
It needs to be rotated ~30 degrees as seen. and If possible too, leaning away at the top.
So that It seems like it is written on the surface.
I have no experience with C# Graphics, and would like some help please.
Please include any using references for my ease.
You can use JavaScript and jQuery functions and Css 3.0 to update add a div containing your text ontop of the image and then rotate it.
this link may help you to reach your goal

display tooltips to dynamically generated chart

Is there a way to display tooltips on an image that is dynamically created. The image is a dynamically created chart that has multiple points and on mouse over on a specific point I need to show additional information via a popup.
I'm using a web forms .net 4.0 and using the System.Drawing and System.Drawing.Imaging namespaces.
If your only output is a flat image, you could try adding a <map> to your page and set the 'title' attribute of each <area> to your tooltip value.
You can learn more about creating maps here: http://www.w3schools.com/tags/tag_map.asp
Essentially, you're defining regions of your image as hot spots.
If you know exactly where the point is, you could create an image map. But will be cumbersome.
How to make an image map:
http://www.javascriptkit.com/howto/imagemap.shtml
I would recommend that you use a Javascript Charting Library, there are tons of them out there. And there are some good free ones.
We are using Highchart
http://www.highcharts.com/products/highstock
But this is not free.
You can use a image map, but in order to do that, you're going to need the exact coordinates and if you're off by just a little bit, it could be messed up. Have you given any thought to using MS Charting? http://www.microsoft.com/download/en/details.aspx?id=14422
With MS Charting, everything is done on the code behind and it generates an image just as the way you're doing it now. The difference is on the backend, when you create the datapoint, you can set the tool tip and several other properties like this:
DataPoint.ToolTip = "Your Tooltip Here";
If you are unfamiliar with them, there is a ton of documentation and samples online.
Good Luck!

Categories