An attempt to replicate the functionality of paint using Win2D in C#.
robmikh / paint Goto Github PK
View Code? Open in Web Editor NEWAn attempt to replicate the functionality of paint using Win2D in C#.
License: MIT License
An attempt to replicate the functionality of paint using Win2D in C#.
License: MIT License
Currently the MainPage keeps track of the canvas (aka _canvasBuffer
). This should be abstracted away into a new object that will hand out the canvas when needed.
Touch triggers the ScrollViewer that surrounds the canvas, which prevents the events from getting through. Ideally scrolling should only be possible with a two finger scroll or something.
Currently the canvas is permanently set to 400 by 400. Resizing should be supported.
It would be nice to have a screenshot or gif in the README.
Add the ability to undo and redo actions.
Allow the use of two different colors simultaneously by using two different mouse buttons. Tools need to be updated to support this. Tools might also need to start being separated by manipulation tools and drawing tools.
When zoomed in this problem is more apparent. Where the mouse is positioned isn't perfectly aligned with where we think the cursor is.
Copying something with transparent content and pasting it again from within the app works fine. Pasting that into Paint or GIMP results in black where there should be transparent pixels. Conversely, copying something with transparent content in something like GIMP and pasting it into the app also shows black where there should be transparent pixels.
After resize is possible, make sure the canvas resizes after pasting content that is larger than the canvas.
Allow a preview for what the tool will do, but only draw it on the swapchain and not on the real render target. This helps alleviate the problem seen in #12.
The positioning of the selection visual is a little too basic and results in negative sizes. Instead the Vishal's offset should be changed to garuntee positive sizes for the visual.
It would be nice to create a bunch of tools and then have them bound to a panel in the app. This would also allow for editing tool settings in the future.
Unbind the color from the mouse wheel, it is just getting annoying now that zoom is enabled.
Somehow the image is resized after pasting content that is larger than the original image... but then none of the tools are able to draw outside the bounds of the original image. I'm guessing the resizing mechanism of the canvas isn't behaving correctly.
Currently the code only understands what could be called the basic "pencil" tool and the "paint bucket" tool though a hack. Separate out the functionality of these tools into tool objects, and provide the ability to switch between tools.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.