Capture Desktop Image

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bsiang Tan

    #1

    Capture Desktop Image

    Hi all,

    Could anyone kindly point me the way to capture the desktop image (include
    the desktop icon) as bitmap ?

    Thank a lot

    Best regard,
    Bsiang


  • Chris LaJoie

    #2
    Re: Capture Desktop Image

    I don't know if this would work, it's just a suggestion:
    1) minimize all windows (I seem to remember an article describing how to
    enumerate all the windows)
    2) send send the PrintScreen keycode
    3) read the clipboard contents into a System.Drawing. Bitmap

    note: I highly doubt there's a way to capture the screen without minimizing
    everything first.

    Chris


    "Bsiang Tan" <tbsiang1982@ho tmail.com> wrote in message
    news:%23qEHzlsg DHA.3828@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Hi all,
    >
    > Could anyone kindly point me the way to capture the desktop image (include
    > the desktop icon) as bitmap ?
    >
    > Thank a lot
    >
    > Best regard,
    > Bsiang
    >
    >[/color]


    Comment

    • Chris LaJoie

      #3
      Re: Capture Desktop Image

      I don't know if this would work, it's just a suggestion:
      1) minimize all windows (I seem to remember an article describing how to
      enumerate all the windows)
      2) send send the PrintScreen keycode
      3) read the clipboard contents into a System.Drawing. Bitmap

      note: I highly doubt there's a way to capture the screen without minimizing
      everything first.

      Chris


      "Bsiang Tan" <tbsiang1982@ho tmail.com> wrote in message
      news:%23qEHzlsg DHA.3828@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Hi all,
      >
      > Could anyone kindly point me the way to capture the desktop image (include
      > the desktop icon) as bitmap ?
      >
      > Thank a lot
      >
      > Best regard,
      > Bsiang
      >
      >[/color]


      Comment

      • Eric Gunnerson [MS]

        #4
        Re: Capture Desktop Image

        I agree that you will probably have to cause the minimize. You might be able
        to hook into the "show desktop" function in XP (ie <windows key>-D).

        To take the snapshot, you can use this class:



        --
        Eric Gunnerson

        Visit the C# product team at http://www.csharp.net
        Eric's blog is at http://blogs.gotdotnet.com/ericgu/

        This posting is provided "AS IS" with no warranties, and confers no rights.
        "Chris LaJoie" <chris@etriptra der.com> wrote in message
        news:OELiLgxgDH A.3764@tk2msftn gp13.phx.gbl...[color=blue]
        > I don't know if this would work, it's just a suggestion:
        > 1) minimize all windows (I seem to remember an article describing how to
        > enumerate all the windows)
        > 2) send send the PrintScreen keycode
        > 3) read the clipboard contents into a System.Drawing. Bitmap
        >
        > note: I highly doubt there's a way to capture the screen without[/color]
        minimizing[color=blue]
        > everything first.
        >
        > Chris
        >
        >
        > "Bsiang Tan" <tbsiang1982@ho tmail.com> wrote in message
        > news:%23qEHzlsg DHA.3828@tk2msf tngp13.phx.gbl. ..[color=green]
        > > Hi all,
        > >
        > > Could anyone kindly point me the way to capture the desktop image[/color][/color]
        (include[color=blue][color=green]
        > > the desktop icon) as bitmap ?
        > >
        > > Thank a lot
        > >
        > > Best regard,
        > > Bsiang
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...