Screen Capture Current Window

broken image


If you need to capture a screenshot of something on your computer screen, Windows 10 offers a variety of methods for doing just that. Whether you want to save the entire screen, or just a piece of. The simplest way to take a full page screenshot of your current browser window. Click on the extension icon (or press Alt+Shift+P), watch the extension capture each part of the page, and be transported to a new tab of your screenshot where you can download it as an image or PDF or even just drag it to your desktop. Aug 13, 2019 Even though the Windows 10 Snipping Tool has been replaced with the new Snip & Sketch app, you can still use it most systems to easily capture screenshots of a single screen. If you want to capture the current Windows screen, you can just press the Print Screen key, and then press CtrlV to paste the screen image into a word processing document or other file.

How to screen capture current window
-->

You can use a bitmap to capture an image, and you can store the captured image in memory, display it at a different location in your application's window, or display it in another window.

In some cases, you may want your application to capture images and store them only temporarily. For example, when you scale or zoom a picture created in a drawing application, the application must temporarily save the normal view of the image and display the zoomed view. Later, when the user selects the normal view, the application must replace the zoomed image with a copy of the normal view that it temporarily saved.

To store an image temporarily, your application must call CreateCompatibleDC to create a DC that is compatible with the current window DC. After you create a compatible DC, you create a bitmap with the appropriate dimensions by calling the CreateCompatibleBitmap function and then select it into this device context by calling the SelectObject function.

After the compatible device context is created and the appropriate bitmap has been selected into it, you can capture the image. The BitBlt function captures images. This function performs a bit block transfer that is, it copies data from a source bitmap into a destination bitmap. However, the two arguments to this function are not bitmap handles. Instead, BitBlt receives handles that identify two device contexts and copies the bitmap data from a bitmap selected into the source DC into a bitmap selected into the target DC. In this case, the target DC is the compatible DC, so when BitBlt completes the transfer, the image has been stored in memory. To redisplay the image, call BitBlt a second time, specifying the compatible DC as the source DC and a window (or printer) DC as the target DC.

Code example

This section contains a code example that captures an image of the entire desktop, scales it down to the current window size, and then saves it to a file (as well as displaying it in the client area). My external drive won t mount.

To try out the code example, begin by creating a new project in Visual Studio based on the Windows Desktop Application project template. It's important to name the new project GDI_CapturingAnImage so that the code listing below will compile (for example, it includes GDI_CapturingAnImage.h, which will exist in your new project if you name it as suggested).

Open the GDI_CapturingAnImage.cpp source code file in your new project, and replace its contents with the listing below. Then build and run. Each time you resize the window, you'll see the captured screenshot displayed in the client area.

SETTINGS
HQ
LO
  • Windows 10 provides several ways to take screenshots of your entire computer screen, or just select parts of it.
  • The fastest way to take a screenshot on Windows 10 is by pressing the 'PrtScn' button on your keyboard. There are various key combos to take screenshots of portions of the screen.
  • Microsoft also provides a Snipping Tool to take custom screenshots, and draw on the images.
  • You can take screenshots within games by opening the Game Bar with the Windows + G keyboard shortcut.
  • Visit Business Insider's Tech Reference library for more stories.

If you need to capture a screenshot of something on your computer screen, Windows 10 offers a variety of methods for doing just that.

Whether you want to save the entire screen, or just a piece of it, we've rounded up all the most common techniques for taking a Windows 10 screenshot.

How to take a screenshot on Windows 10 with the PrtScn key

The simplest way to save a copy of whatever is on your computer screen is to simply press the 'Print Screen' key on your keyboard. It's usually labeled 'PrtScn' (or something very similar) and is located in the top row, among or near the Function keys.

On some keyboards (particularly laptops) you might need to trigger the Print Screen using the Function key (in other words, hold the Function key and then press PrtScn).

© Dave Johnson/Business Insider The PrtScn key copies the entire screen to the clipboard, so you can paste it elsewhere, but there are several modifier keys you can use to change the way this key works. Dave Johnson/Business Insider

Windows features several PrtScn variations:

  • Press PrtScn. This copies the entire screen to the clipboard. You can paste the screenshot into any program that displays images, like Paint or Microsoft Word.
  • Press Alt + PrtScn. This copies the active window to the clipboard, which you can paste into another program.
  • Press the Windows key + Shift + S. The screen will dim and the mouse pointer will change. You can drag to select a portion of the screen to capture. The screenshot will be copied to the clipboard, which you can paste into another program. (This shortcut only works if you have the latest version of Windows 10 installed, called the Windows 10 Creators Update.)
  • Press the Windows key + PrtScn. This saves the entire screen as an image file. You can find it in the 'Pictures' folder, in a subfolder called 'Screenshots.'

How to take a screenshot on Windows 10 with Snipping Tool

Microsoft includes a much more flexible screenshot utility with Windows 10, called Snipping Tool.

You can use Snipping Tool to grab a screenshot and save it as an image file without first pasting the screenshot into another program.

1. Adobe premiere pro cs7. Start the Snipping Tool from the Start menu.

2. In the 'Mode' drop down, choose the kind of screenshot shape you want - you can choose anything from full screen to rectangular to a free-form shape.

Windows Print Screen Capture Current Window

© Dave Johnson/Business Insider You can choose the kind of screenshot that Snipping Tool takes with the program's menus. Dave Johnson/Business Insider

3. Click New, and your screen will freeze. You can then use the mouse to create the screenshot. The screenshot will then appear in the Snipping Tool window.

4. If you want to include something like a tooltip, which only appears after a mouse movement, you can specify how long to wait before taking the screenshot using the Delay menu.

5. If you want to, once you've taken your screenshot, you can use the drawing tools to annotate the screenshot.

Snapchat pc windows 8. 6. When you're done, click 'File' and then click 'Save As' to save the completed screenshot to your computer.

7. You can also click the copy button in the Snipping Tool window - it looks like two pages laid over one another - to copy the image to your clipboard.

How to take a screenshot on Windows 10 with the Game Bar

Microsoft Screen Recorder Windows 10

The Game Bar is an overlay you can use within most Windows games to take screenshots and record video. Here's how to use it:

1. Start a game from the Start menu or the Xbox Console Companion program.

2. While playing the game, press the Windows key + G. The Game Bar overlay should appear.

© Dave Johnson/Business Insider The Game Bar has a screenshot tool that appears as an overlay on top of games. Dave Johnson/Business Insider

3. Click the camera icon to take a screenshot, or you can use the keyboard shortcut: Windows key + Alt + PrtScn.

The screenshot will be automatically saved to the 'Videos' folder in a subfolder called 'Captures.'

If you're playing a game on Steam, you can also press F11 to take a screenshot. It will be added to your screenshots folder on Steam.

Related coverage from Tech Reference:

Read the original article on Business Insider




broken image