Screenshot

所属分类:绘图程序
开发工具:Visual Basic
文件大小:32KB
下载次数:18
上传日期:2010-05-08 19:35:05
上 传 者kenny.bao
说明:  AutoCAD下的插件,采用 .NET+AutoCad开发,从事.NET下CAD二次开发的朋友们会喜欢的。可以简化对CAD图纸或程序窗口的截屏过程。它设有选项,允许将前景色、背景色设置为白色或黑色,或者直接将截得的图片发送至打印机。
(This plugin can be used with AutoCAD to simplify the process of capturing images of parts of drawings, or the entire drawing or application windows. It optionally allows you to remap the background to white and the foreground to black, and convert the entire image to grayscale, as well as sending the capture image directly to a printer.)

文件列表:
Screenshot\ADNPlugin-Screenshot.dll (40960, 2009-11-16)
Screenshot\Source\demand-loading.cs (7517, 2009-11-13)
Screenshot\Source\Properties\AssemblyInfo.cs (1419, 2009-11-16)
Screenshot\Source\Screenshot.cs (45595, 2009-11-16)
Screenshot\Source\Screenshot.csproj (2748, 2009-11-12)
Screenshot\Source\Screenshot.sln (908, 2009-10-19)
Screenshot\Source\Properties (0, 2010-05-08)
Screenshot\Source (0, 2010-05-08)
Screenshot (0, 2010-05-08)

================================================ Plugin of the Month, November 2009 Brought to you by the Autodesk Developer Network ================================================ ---------- Screenshot ---------- Description ----------- This plugin can be used with AutoCAD to simplify the process of capturing images of parts of drawings, or the entire drawing or application windows. It optionally allows you to remap the background to white and the foreground to black, and convert the entire image to grayscale, as well as sending the capture image directly to a printer. System Requirements ------------------- This plugin has been tested with AutoCAD 2007 onwards. A pre-built version of the plugin has been provided which should work on 32- and ***-bit Windows systems. The plugin has not been tested with all AutoCAD-based products, but should work (see "Feedback", below, otherwise). The source code has been provided as a Visual Studio 2005 project containing C# code (not required to run the plugin). Installation ------------ Copy the plugin module, "ADNPlugin-Screenshot.dll", to a location on your local system (the best place is your AutoCAD-based application's root program folder). Inside your AutoCAD-based application, use the NETLOAD command to load the plugin. As it loads, the application will register itself to load automatically in future sessions of the Autodesk product into which it has been loaded whenever the SCREENSHOT command is used. Usage ----- Once loaded, the SCREENSHOT command will display the current settings along with the command's various options: Current settings: Output=Clipboard, Print=No, Background=Normal, Foreground=Normal, Grayscale=Off Select first point of capture window or [Document/Application/Objects/Settings]: Picking a point on the screen will start the process to capture a specific window in the active drawing, applying the current application settings. Selecting the "Document" or "Application" options will cause the active document or overall application windows to be captured, respectively. Selecting the "Objects" option will allow selection of objects whose extents will be used to choose the section of the screen to capture. See "Known Issues" below for an explanation of the approach used and the issues related to it. Selecting the "Settings" option provides access to the application settings: Setting to change [Output/Print/Background/Foreground/Grayscale/Exit]: Selecting "Output" allows choice between placing the results of the capture on the clipboard or saved to a file: Save to file or place on the clipboard [File/Clipboard]: Selecting "Print" allows the captured image to be sent automatically to a printer: Send image to printer once captured [Yes/No]: Selecting "Background" allows the drawing background to be re-mapped to white: Force background color to white [Yes/No]: Selecting "Foreground" allows anything other than the drawing background to be converted to black: Force foreground color to black [Yes/No]: Selecting "Grayscale" will replace every pixel in the output image with its respective grayscale equivalent: Convert image to grayscale [Yes/No]: Selecting "Exit" returns to the main command menu. Advanced Configuration ---------------------- An additional command, CONFIGSS, has been added to later versions of the plugin, and can be used to fine-tune some advanced options in the application. The first prompt allows you to choose the amount of additional space that should surround the objects captured via their extents. This is given as a percentage of the height or width (whichever is larger). Percentage increase when capturing object extents: The second prompt allows you to adjust the delay used by the application to allow the Operating System to repaint the drawing canvas after a file selection. It was been found that one second (the default value) is adequate for the majority of systems, but this has been provided as an advanced option in case it is needed. Delay in seconds to allow repaint after file selection: The third prompt allows you to introduce or adjust a comparable delay for when selection happens to the clipboard, which may help in the rare situation that graphics related to the dynamic input feature in AutoCAD are not unpainted in time. In most cases this can safely be left at 0. Delay in seconds to allow repaint before clipboard selection: Uninstallation -------------- The REMOVESS command can be used to "uninstall" the plugin, stopping it from being loaded automatically in future editing sessions. Known Issues ------------ The tool simply captures the graphics via the screen's display buffer: if unwanted application windows are obscuring the image, in some way, then this may need additional handling. The tool will also capture AutoCAD's navigation aids, such as the UCS icon and the ViewCube. These can be turned off manually using the UCSICON and NAVVCUBE commands, if needed, but are not currently hidden automatically by the plugin. If the "Objects" option is used, the tool will calculate the approximate screen extents of the objects selected by the user, capturing that area in the output image. For the sake of efficiency this is an approximate calculation: if more precision is needed it is recommended to select specific window points for the capture. If the "Document" option is used and the active document is in an overlapping window, undesired behavior may be experienced. Maximising the document window or using window selection should help. If when saving a screen capture to a file it contains some artifacts of the file-selection window graphics, the CONFIGSS command (see above) can be used to extend the delay used by the application (the default delay is of one second). Author ------ This plugin was written by Kean Walmsley for publishing on his blog: http://blogs.autodesk.com/through-the-interface Acknowledgements ---------------- Many thanks to Fred Dickinson, Mark Johnston, Mark Dubelaar, Bill Woodhams, Chris Bray, Nikolay Poleschuk, James Meading and Harry Kortekaas for their input during the design and testing of this plugin. Further Reading --------------- For more information on developing with AutoCAD, please visit the AutoCAD Developer Center at http://www.autodesk.com/developautocad Feedback -------- Email us at labs.plugins@autodesk.com with feedback or requests for enhancements.

近期下载者

相关文件


收藏者