Tuesday, April 12, 2005 12:50 PM
by
brian
Cropper in C#
Point and Shoot Screen Captures
Cropper is a screen capture utility written in C# on the Microsoft .Net platform. It makes it fast and easy to grab parts of your screen. Use it to easily crop out sections of vector graphic files such as Fireworks without having to flatten the files or open in a new editor. Use it to easily capture parts of a web site, including text and images. It's also great for writing documentation that needs images of your application or web site.

The files are saved straight to a folder of your choice in the format you specify or to the clipboard or printer. No more 'Print Screen'... open image editor... paste from clipboard... crop... export. Just double-click the form or press enter, and whatever is visible below the form is captured.
The source code is freely available with shared source licensing. The license information is available in each class file.
Reviews
MSDN magazine
About.com
Controls
- Right Click: Context menu on main form.
- Arrow Keys: Nudge form one pixel.
- Alt + Arrow Keys: Resize form one pixel.
- [ or ]: Resize entire form while keeping the crosshairs centered.
- Alt + [ or ]: Resize the thumbnail indicator one pixel.
- + Ctrl: changes all resize and nudge amounts to ten pixels.
- DoubleClick or Enter: Take a screen shot or start/stop a recording plug-in.
- Tab: Cycle form colors.
- Shift+Tab: Cycle form sizes.
- Esc: Hide the main form
- F8: Showthe main form
Version 1.9.0
This is the latest stable release.
[Changes from 1.8.0]
1) .Net Framework 2.0. Cropper is now compiled against the .Net 2.0 Framework. The installer now works on systems with only the 2.0 Framework installed.
2) Vista Compatibility. A new option to hide the form during a screenshot is available in the options dialog. The new option allows Cropper to capture other transparent windows and keeps the crop form from showing up in the capture on Vista Glass. This option is automatically enable when running on Vista but may be overridden by the user.
The Alt+PrintScreen capturing now properly captures windows in Vista that have glass in the client area.
3) Predefined Sizes. Frequently used form sizes can now be saved. The sizes are managed in the options dialog under the appearance tab. While working with cropper the sizes may be accessed via the right click menu or by pressing Shift+Tab to cycle through the different sizes.
4) Alt+PrintScreen Captures Stay on Clipbaord. The Options dialg Capturing tab allows the user to keep Croppers Alt+PrintScreen captures on the clipboard.
5) Configurable Plug-In Support. Cropper now has support for integrated plug-in configuration. A new tab named Plug-Ins will present options from plug-ins that support configuration. The new functionality also supports easily persisting a plug-in's settings into Croppers configuration file.
Two included plug-ins support the new configuration options. The clipboard plugin allows the user to choose the format of the image that is placed on the clipboard and the Jpeg plug-in has a single option for specifying the file extension. More community plug-ins with configuration support are on the way.
6)'Prompt' File Name Template Bug Fixed. A bug that could cause a null reference exception when using the 'Prompt' file name template has been fixed. Another bug in the dialog placement when the crop form was set to always on top has also been corrected.
1.9 Downloads
Community Plug-ins
Animated Gif Plugin (John Galloway) - Now on CodePlex More info and download
Gif Output Plugin (Eric Bachtal) More info and download
OneNote, Flickr and TinyPic Upload (Patrick Altman) - Now on CodePlex More info and download
Mantis Bugtracking Upload (Victor Boctor) More info and download
Version 1.5
This is the last single assembly version of Cropper. It will remain available because of its small size and all in one nature. See release history below for more version specific information.
1.5 Downloads
Release history
Download Binaries
Download Source
Also available at ProjectDistributor.net
Known Issues
The maximum size of the crop form is smaller than the screen size. This is a limitation of the way the UI is currently drawn. There is an area of transparent form around the visible area which causes Cropper to appear to be smaller than the maximum form size. With the original usage of cropping out small areas of the screen this was not pressing problem. The next version uses a different method for drawing to the screen and will not have this limitation.
Unable to capture images of movies in WMP or Winamp. This usually applies to all screen capture programs. It's hardware acceleration / hardware video overlay that causes it. In Windows Media Player, under the performance tab, slide the video acceleration to something less than full. In Winamp, under Video Options, uncheck 'Allow hardware video overlay'. This should allow you to take screenshots with any program.
Cropper does not capture semi-transparent / layered windows. Since Cropper is itself a layered window, adding the ability to capture other layered windows causes the Cropper window to show in the screenshot. Cropper was originally designed to easily pull out parts of web pages for documentation or images out of vector graphic comps. Alternative capture methods are coming that will enable the capturing of full windows.
No plug-ins loaded and no plug-ins listed in output menu. This has happened for a few users after downloading the application. It is caused by the user's zip application not extracting the folder structure. All plug-ins should be in a subfolder named 'plugins'. Included plug-in names will usually end with Format, Plugin, or Effect.