•   over 8 years ago

need access current coordinates of each stroke

Hi, I need access to the current stroke of the drawing canvas, its current X and Y position, its current color, its width. Are there methods to return these? I've looked at the SDK, but it doesn't seem to provide access?


  •   •   over 8 years ago

    Hi Duy,
    I'm not entirely sure what you're asking. A stroke doesn't have a fixed (x,y) position, or width. Can you clarify what you want?

    The current SDK does not allow you to handle stroke objects. This will come in a later version. Right now it sounds like what you might want is to subclass one of the canvas objects and capture the data you want from the MotionEvent objects.

    Hod Greeley
    Samsung Developers

  •   •   over 8 years ago

    Hi Hod, I am trying to implement some sort of callbacks to notify me when a user is entering a stroke. I am recording all the information related to the stroke, send it over the networks. Once I receive this information, I want to repaint it on the Canvas. Yes, I was trying to subclass CanvasView, still trying to figure out the call back.

Comments are closed.