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

  • SEARCH
  • Home
  • 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 632423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:04:28+00:00 2026-05-13T20:04:28+00:00

It’s a little hard to explain what I need but i’ll try: I need

  • 0

It’s a little hard to explain what I need but i’ll try:

I need to write application (winform) which will be some kind of filter to image/other forms behind it. With one exception – all behind form should looks as is except of red (for example) color, which have to be replaced to any other specified color, white for example.

So let’s imagine I have opened windows Word with few lines of text. With red and black letters.
So when i place my application above this text – it should “filter” red symbols and fill them to white.

So as i understand this task: i have to snap area behind the form, then process it (replace colors) and after draw this image on my form body.

Any links or keywords for solution?

UPD:

so – this is my final solution:

  1. do form transparent (using TransparencyKey and BackColor properties)
  2. place picturebox over the form
  3. when we need to update image in picturebox – we replace current image with pictureBox1.Image = null;, then refreshing form with (this.Refresh()) and do new snapshot

thanks for all 😉

UPD 2:
sample http://dl.dropbox.com/u/4486681/result.png

UPD 3:
here are sources

  • 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-05-13T20:04:29+00:00Added an answer on May 13, 2026 at 8:04 pm

    you can create a snapshot of the desktop using the following code:

    public Bitmap CaptureScreen()
    {
        Bitmap b = new Bitmap(SystemInformation.VirtualScreen.Width, SystemInformation.VirtualScreen.Height);
        Graphics g = Graphics.FromImage(b);
        g.CopyFromScreen(0, 0, 0, 0, b.Size);
        g.Dispose();
        return b;
    }
    

    Replace the dimensions and position with the coordinates of your form. This way you get a bitmap of what’s behind your form. Then you can do the color replacement on that bitmap.

    Please note that due to settings like ClearType and other anti-aliasing mechanisms, you have to also take into account “intermediate pixels” when doing the color replacement. Otherwise things will look funny 🙂

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

Sidebar

Related Questions

I need a function that will clean a strings' special characters. I do NOT
I need to clean up various Word 'smart' characters in user input, including but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into

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.