Results 1 to 3 of 3

Thread: Image manipulation Pixastic: Element not found

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default Image manipulation Pixastic: Element not found

    Hi,

    I am creating an image viewer with the possibility to put the image into black and white. The image manipulation is preformed by the Pixastic library with some added features of my own. Basically it takes the img and replaces it with a canvas element with a representation off the adjusted image.
    Pixastic also provides a revert function that will put the img back instead of the canvas.

    My code works perfectly when I press the button. The canvas is created and the black and white image is shown. Now when i move my mouse and press the button again the manipulation is reverted just like intended.

    The problem appears when i don't move my mouse and press the button the second time. My function is called but the fields i changed in my function to set is to black and white are still the values they had before the first click.

    When I move my mouse between clicks this problem doesn't exist.

    Has anyone any ideas?

    thanks,
    Michiel

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,317
    Vote Rating
    1291
      0  

    Default

    So you are doing something that requires something that the 2nd button click triggers?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default

    I maipulate my image in the first click. With a second click it should undo the maipulation from the first. But when I click the second time it looks like the first click never happend.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •