Giter Site home page Giter Site logo

defano / jmonet Goto Github PK

View Code? Open in Web Editor NEW
32.0 5.0 6.0 7.84 MB

An easy-to-use toolkit for incorporating MacPaint / Microsoft Paint-like tools into a Java Swing or JavaFX application.

Home Page: https://defano.github.io/jmonet/javadoc/

License: MIT License

Java 99.87% Shell 0.13%
swing javafx paint canvas paint-tools macpaint graphics

jmonet's People

Contributors

defano avatar johnlunney avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

jmonet's Issues

Java 8 Error

To add its dependency you should use java 8, for this min SDK is 26
To check after sync gradle rebuild your project, you will see it

Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\Ahsan.gradle\caches\modules-2\files-2.1\com.defano.jmonet\jmonet\0.2.2\a92b9db3d14092f0a4062560fa1a63516e1b5345\jmonet-0.2.2.jar
Error:com.android.builder.dexing.DexArchiveBuilderException: Error while dexing com/defano/jmonet/tools/TextTool.class
Error:com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.

com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\Ahsan.gradle\caches\modules-2\files-2.1\com.defano.jmonet\jmonet\0.2.2\a92b9db3d14092f0a4062560fa1a63516e1b5345\jmonet-0.2.2.jar
Information:BUILD FAILED in 13s
Information:4 errors

Magnifier only zooming towards top left corner

Hi,
after using this library, I've noticed that the magnifier (from PaintToolType.MAGNIFIER) doesn't zoom in at clicked mouse location, but always towards the top left corner. I've attached my config. of the magnifier. I suspect that I have forgotten something.

With kind regards

image

How to scale around mouse location?

In some financial projects, need display a complex plot with swing, I think maybe jmonet is good choice.
So, how to scale canvas around with mouse location?

Eraser erases clears all pixels, including those of uploaded image

Hi,
I've noticed the standard settings of the eraser clears everything, including the pixels of the uploaded image(see example of image with red airbrush and grey cleared lines). Are there options to disable the eraser to clear the pixels of the image (and just painted lines)? Or is this still a ToDo?

image

Thank you and kind regards

Scratch region rendering artifacts when scale > 1

When drawing on a canvas that's embedded inside a scroll view, and the canvas' scale value > 1, and the scroll error is not zero, then the scratch region may be painted a pixel or two offset from where it should be.

Unmodified selection is painted twice on canvas

Select a portion of a translucent graphic and before the selection is dirtied (by moving it or applying a transform), the selected region will be painted twice making it appear more opaque than it actually is. Has no visible effect for fully opaque or fully transparent images.

Does not affect the committed image or selected image once modified.

Erase JMonet

Hi Matt!

I'm developing a javafx application which contains a jmonet canvas. The application has several fxml pages and controllers.
The jMonetCanvas is contained in a javafx controller. When I call this controller, it creates a static jMonetCanvas. But I have a problem:

If I go to another controller, the jMonet object continues staying on memory. I'm trying to delete the jMonetObject, calling the dispose method, setting to null the jMonetObject, but it continues in memory with its bufferedImages, listeners,...

What can I do to erase this object completely? I want to erase completely this object when I go to another controller, and I want to create a new jMonet object when I go to its controller.

Thanks.

JavaFX cannot change pencil color

I use javafx to create canvas with image background but when I drawing on this with color picker, the line is default white color. Without image background, I can change color normally.
image
image

Can't find PaintTool object

Hi,
After installing and configuring this library in Intellij via Maven, I have been trying to run the most basic example given in the read_me for a javafx application. After successfully creating a canvas, I was unable to draw on it.
Because the PaintTool object can't be created, it seems that the PaintTool class does not exist, which I highly doubt. However, I have looked through the source code and still can't find it.

Have I implemented the example wrong, or am I missing other dependencies?

As a javafx beginner, I apologize for this trivial question.
Kind regards

PaintTool_Question

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.