Coder Social home page Coder Social logo

ysdy44 / retouch-photo2-uwp Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 4.0 49.2 MB

Vector Graphics Editing Tool, you can transform, fill graphics, support layers, graphics combination.

License: MIT License

C# 100.00%
uwp win2d graphics image adjustments

retouch-photo2-uwp's People

Contributors

ysdy44 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

retouch-photo2-uwp's Issues

Need meta layer for printing.

This is a really cool design, especially given Win2D is leveraged in a very nice way.

However, the output is constrained by the fact that everything has to be rasterized to a bitmap. So the quality of the output is limited. It would be better to have a meta layer that sits along side the Win2D layer so that the display tree could output to other formats, like SVG or XAML.

I suggest you implement this meta layer before you get too far along in your design else it will be very difficult to add later. Most other systems are too heavy handed in the way the meta layer works. Excessive abstraction greatly complicates such designs because the meta layer is then transformed to something native. A nice simple solution is to maintain a Json display tree alongside the Win2D visual elements. It only ever gets used for output, and is not a go between for the Win2D side of things. This parallel display tree could emulate aspects of what SVG and XAML have in common, thus simplifying output to either vector system.

Such an approach would allow you to gradually add this meta layer while continuing to move the rest forward. I would be happy to help with the effort if you add me in on your repo.

Another important design consideration is to move more of your code to .Net Standard. Doing so simplifies unit testing at the component level and opens up the prospect of using some of the work on other platforms.

I like your Win2D "Adorner". I suggest you abstract this a bit further as it is a very critical piece of the solution. An approach I found to be very flexible and easy to tweak is to build the Adorner with SVG regardless of the target platform. The SVG version contains the visual design of the adorner in addition to comments that are used as hints by the display engine that consumes the SVG and renders it natively. The SVG is very simplified, yet has enough detail to drive behaviors of the engine in a programmatic like fashion. I can explain this further if you'd like.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.