Krzysztof Bzoma wrote:
I think i should use GestureManager
Using the GestureManager is definately NOT the way to handle this
situation. It only works for pre-defined gestures, like swiping and
such. It is not suitable for free-form drawing.
I want like 1 touch mechanism for them all, doesn't matter if user
make swipe, tab, double tap or just straight line. It should draw what
he wants.
TImage has OnMouse... events (OnMouseDown, OnMouseMove, OnMouseUp).
In OnMouseDown, set a flag and save the current mouse position.
In OnMouseUp, clear the flag.
In OnMouseMove, if the flag is set, draw a line/arc from the saved
position to the current position, and then save the current position.
Is there possibility of saving later that Bitmap into photo gallery
Of course.
--
Remy Lebeau (TeamB)
Connect with Us