Skip to content

Instantly share code, notes, and snippets.

{
"definitions": {
"identifier": {
"description": "An identifier",
"pattern": "^[a-zA-Z_0-9]+$",
"type": "string"
},
"identifier_list": {
"items": {
"$ref": "#/definitions/identifier"
public void Render(SKCanvas canvas, float angleInRadians, SKPoint center, float scale, params object[] parameters)
{
var Image = (SKImage) parameters[0];
var info = (SKImageInfo) parameters[2];
// get the screen density for scaling
var display = DisplayInformation.GetForCurrentView();
var _scale = display.LogicalDpi / 96.0f;
var scaledSize = new SKSize((float) info.Width / _scale, (float) info.Height / _scale);