Skip to content

UWP - SkiaSharp to draw editable shapes #172

Closed

Description

@pcdus

Sorry for my second question, that is not an issue...
But I'm looking for an easy way that allowing a user to add basic shapes (rectangle, ellipse, ...) on a area (like canvas) that contains a photo.
Then the shape must be moved on the area, resizable and customizable (foreground color).
I have looked to samples but I didn't found a similar case: is it feasable through SkiaSharp?

Activity

  1. mattleibow commented on Oct 25, 2016

    @mattleibow
    Contributor

    Hi again @Goldstrike, SkiaSharp is not really a editor so probably the answer is no. However, SkiaSharp can be used as the actual visualization/drawing engine.

    Basically, you will have to write the logic to handle the draw, create and resizing of shapes via touch/mouse. Then SkiaSharp can do the simple drawing. Think of SkiaSharp as the canvas.DrawRect(x, y, w, h); bit - it draws a rectangle, but you will still have to do the work to translate swipes into a drag/resize operation.

  2. ghost locked as resolved and limited conversation to collaborators on Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions