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 321539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:51:18+00:00 2026-05-12T08:51:18+00:00

Not sure if this is even possible but I would like to add a

  • 0

Not sure if this is even possible but I would like to add a control / object to a web page so that end users could click a button to capture what they are seeing in the browser so they can then submit the image back as part of a website review process.

I had thought ActiveX control but if we could use flash or silverlight that would be better.

Thanks for any suggestions.

  • 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-12T08:51:18+00:00Added an answer on May 12, 2026 at 8:51 am

    On Windows, you can press Alt + PrintScreen to copy the current window into the clipboard.

    If you can use FireFox, I suggest to look at ScrapBook+.

    If you need an automated process, try SWT. This library has a browser component which you can use to load some HTML, display it and copy the result into an image. The problem is to know when the browser has finished rendering the document. This code fragment should get you started:

    public HTML2Png ()
    {
        display = new Display();
        shell = new Shell(display);
        shell.setLayout(new FillLayout());
        shell.setSize(920, 700);
        shell.setLocation(10, 20);
        browser = new Browser(shell, SWT.NONE);
    
        browser.addProgressListener(new ProgressListener() {
            public void changed (ProgressEvent progressevent)
            {
            }
    
            public void completed (ProgressEvent progressevent)
            {
                boolean result = browser.execute("window.status=document.bgColor;");
                if (!result)
                {
                    System.err.println("Executing script failed!");
                    return;
                }
    
                System.out.println("Loading completed.");
                completed.set(true);
            }
        });
        browser.addPaintListener(new PaintListener() {
            public void paintControl (PaintEvent paintevent)
            {
                System.out.println(paintevent);
            }
        });
    }
    
    void createPNG (String url, String pngFile)
    {
        System.out.println("Working on "+url);
        completed.set(false);
    
        shell.open();
    
        browser.setText("<html><body bgcolor=\"#FF00FF\"></body></html>");
        GC source = new GC (shell);
        int testColor = 0xFF00FF00;
        Image image = new Image (display, new Rectangle(0, 0, 1, 1));
    
        int i = 100;
        while (display.readAndDispatch() && i > 0)
        {
            source.copyArea(image, 0, 0);
            if (image.getImageData().getPixel(0,0) == testColor)
                break;
            sleep();
            i --;
        }
    
        if (i == 0)
            throw new RuntimeException("Loading took too long");
    
        completed.set(false);
        browser.setUrl(url);
        i = 50;
        while (!shell.isDisposed() && i > 0)
        {
            if (completed.get())
            {
                source.copyArea(image, 0, 0);
                if (image.getImageData().getPixel(0,0) != testColor)
                {
                    image = new Image (display, browser.getClientArea());
                    source.copyArea(image, 0, 0);
    
                    //if (checkImage(image, testColor))
                        break;
                }
    
                i --;
            }
    
            while (display.readAndDispatch())
                ;
    
            sleep();
        }
    
        if (i == 0)
            throw new RuntimeException ("Loading timed out");
    
        ImageLoader io = new ImageLoader ();
        io.data = new ImageData[] { image.getImageData() };
        File f = new File (pngFile);
        io.save (f.getAbsolutePath(), SWT.IMAGE_PNG);
    
        System.out.println("Saved image "+f+", "+f.length()+" bytes");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure this is even possible, but I would really like to be
I'm not sure if anything like this is even possible, but I was told
I'm not sure this is even possible but I know if it is, the
I'm not sure if this is even possible, but is there a way to
Ok, not sure if this is even possible, but I want to change the
Hello! I'm not even sure if this is possible, but hopefully it is in
I'm not even sure if this is possible, but I've exhausted all of my
Not sure if this is even possible but since Verizon does not have an
I am not sure this is even possible, but I am hoping for a
I am not sure if this is possible but I have a small web

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.