drawing, implement stamps feature
Open, Needs TriagePublic


The stamps tool will be accessed from "Tools" panel. In "Tool options" panel... we will be having a grid on the left for selecting images and on the right we will have two sliders for Image size(1 to canvas.width / height) and opacity, respectively.

A ghost image will be produced to get an overview of stamp to be applied.

Users can also select an pre existing image from their device to use as a stamp. For this feature, I'll be using FileDialog(http://doc.qt.io/qt-5/qml-qtquick-dialogs-filedialog.html) element.

Extended Goal -- Implement pinchArea in ghost image to allow users on touch device change location of ghost image with the help of fingers.

asagtani created this task.Jul 6 2018, 6:59 AM
asagtani moved this task from Backlog to WIP on the GCompris: Activities board.Jul 6 2018, 8:05 AM

Stamps feature is implemented as planned.
For touch devices, I guess if we set hoverEnabled to false in canvas mouseArea....users can drag and drop the ghost image and onClick it can be drawn at that coordinates, this needs to be checked.

For tool options, I need a little help on scrollable grid part... Images are getting out of the display region(https://cdn.pbrd.co/images/Htv9d94.png), I am not sure how to fix it.

For file import, I have enabled the following extensions --> "Image files (*.jpg *.png *.svg)"

minimum size should not be 0
the shadow z should be above the other images already set.

apk file --> https://files.fm/u/y4ettcq9#_

fileDialog is working fine on Ubuntu and Android.