Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8810553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:08:49+00:00 2026-06-14T03:08:49+00:00

I can add filter to image like here : // apply grayscale filter to

  • 0

I can add filter to image like here:

// apply grayscale filter to second image
filteredYoda.applyFilter({
    filter: Kinetic.Filters.Grayscale,
    callback: function() {
        layer.draw();
    }
});

, but how I can remove it and get initial image?

UPDATE:
the code that solves the problem:

    imageCanvas.initailImage = imageCanvas.getImage();
    imageCanvas.disconnect = function () {
        imageCanvas.applyFilter({
            filter: Kinetic.Filters.Grayscale,
            callback: function() {
                //imageCanvas.deviceName += " - Disconnected.";
                stage.get('#deviceLayer')[0].draw();
            }
        });
    };
    imageCanvas.connect = function () {
        if (imageCanvas.hasOwnProperty('initailImage')) {
            imageCanvas.setImage(imageCanvas.initailImage);
            stage.get('#deviceLayer')[0].draw();
        }
    };
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:08:51+00:00Added an answer on June 14, 2026 at 3:08 am

    There doesn’t seem to be any way of doing this at moment. I’ve poked around in the source code of the current version, and I can’t find any function call that would remove a filter.

    The filters themselves are actually functions that apply a little bit of maths to the raw image data, so one approach might be to define your own filter which applies the inverse equation. However, it might prove to be impossible to compute the original values without adding extra complexity.

    So, if you don’t want try that (and who would blame you..), you could also just make a new Image from the same source and store it separately, to be shown as the filtered image. It’s a little tiresome, and unfortunately the clone method doesn’t work properly right now either (you’ll get a reference to the same variable), but it might be the simplest approach.

    And finally, of course, you might prefer to wait for more filter support to be implemented. I couldn’t tell you when this might happen, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an ISAPI filter that can automatically add the Last-Modified header in IIS?
Wordpress has a filter that automatically add paragraphs to posts. I can remove this
We can add an image to an photo album using UIImage *img = [UIImage
I'm trying to implement an image processing function. Here it is: typedef void (*AgFilter)(int*,
I'm using Bing Sharp 2.0. I'd like to do image search by filters, so
I'm using this cool image slider http://www.jscraft.net/demo/plugins/filters/ , but as you can see, using
I am using some CoreImage filters to process an image. Applying the filter to
I can add and remove the last line in my dynamic form and calculate
I can add a normal rightBarButton to my navigation without a problem but now
I can add a Conditional statement to a breakpoint, for instance arg0.startsWith(something) but i'd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.