public void DrawImage(IBitmap source, double opacity, Rect sourceRect, Rect destRect) { var impl = (BitmapImpl)source.PlatformImpl; var s = SkRect.FromRect(sourceRect); var d = SkRect.FromRect(destRect); MethodTable.Instance.DrawImage(Handle, impl.Handle, (float)opacity, ref s, ref d); }
public void FillRectangle(Brush pbrush, Rect rect, float cornerRadius = 0) { using (var brush = CreateBrush(pbrush, rect.Size)) { var rc = SkRect.FromRect(rect); MethodTable.Instance.DrawRectangle(Handle, brush.Brush, ref rc, cornerRadius); } }
public void PushClip(Rect clip) { var rc = SkRect.FromRect(clip); MethodTable.Instance.PushClip(Handle, ref rc); }