Std ViewScreenShot/ru: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav |
|||
|[[Std_DlgParameter|Std DlgParameter]] |
|||
|[[Std_SceneInspector|Std SceneInspector]] |
|||
|[[Std_Tools_Menu|Std Tools Menu]] |
|||
|IconL=Std_DlgParameter.svg |
|||
|IconR= |
|||
|IconC=Freecad.svg |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
{{GuiCommand/ru |
{{GuiCommand/ru |
||
Line 9: | Line 19: | ||
</div> |
</div> |
||
== |
==Description== |
||
The '''Std ViewScreenShot''' command opens a dialog box to create an image file, a screenshot, from the current [[3D_view|3D view]]. |
|||
This command opens a dialog to save the current content of the [[3D view]] to a file. It can save to various image formats. Additionally, you can change the aspect ratio and the resolution of the screen shot using the "Options" button to get access to more parameters. |
|||
⚫ | |||
This command can also use the image comment field of some image formats, like PNG or JPEG to save [[MIBA]] information along with the picture. |
|||
{{Caption|The Save picture dialog box after pressing the Extended button}} |
|||
==Usage== |
==Usage== |
||
⚫ | |||
# There are several ways to invoke this command: |
|||
# The Save picture dialog box opens. |
|||
#* Pressing the {{KEY|[[File:Std ViewScreenShot.svg|16px|Std ViewScreenShot|link=Std ViewScreenShot]] [[Std ViewScreenShot|Std ViewScreenShot]]}} button in the toolbar |
|||
# Optionally press the {{Button|Extended}} button to reveal an additional panel in the dialog box. For more information see [[#Options|Options]]. |
|||
⚫ | |||
# Optionally browse to the correct folder. |
|||
#* via [[#Scripting|Python scripting]] |
|||
# Enter a filename and select the file type. |
|||
'''Result:''' A dialog will open requesting some parameters |
|||
# Press the {{Button|Save}} button to create the image file and close the dialog box. |
|||
==Options== |
==Options== |
||
===Image |
===Image dimensions=== |
||
FreeCAD uses the QT built-in image types and some QT plugins in the bin/imageformats directory to save pictures. So how many and what formats you can choose depends on your platform. |
|||
=== Dialog === |
|||
* Select a standard size from the '''Standard sizes''' dropdown list. Or specify the '''Width''' and '''Height''' for a custom size. |
|||
⚫ | |||
* Optionally press an '''Aspect ratio''' button to set the width-to-height ratio of the image. If the '''Width''' input box has the focus the height of the image will change and vice versa. |
|||
=== |
===Image properties=== |
||
The image size parameters are set to the screen size of the active 3D view. But you can change it to any value you like. Some OpenGL drivers don't allow renderings greater then 8000 pixels. It depends on your system. |
|||
* Select an option from the '''Background''' dropdown list: |
|||
With the four buttons you can change the aspect to a certain value. |
|||
⚫ | |||
** '''White'''. |
|||
** '''Black'''. |
|||
⚫ | |||
* Select an option from the '''Creation method''' dropdown list: |
|||
⚫ | |||
** '''Offscreen (Old)'''. This method does not work on many modern Linux systems as it relies on the graphics driver. This method does not support anti-aliasing. ''Technical information: This is a real off-screen rendering method that only uses functions from the Coin3d library.'' |
|||
⚫ | ** '''Framebuffer (custom)'''. This method supports anti-aliasing. ''Technical information: If anti-aliasing is off, this method reads the image directly from the graphics renderer, else it renders to a framebuffer and gets the image from there. The key part of this method is Qt's QOpenGLFramebufferObject class.'' |
||
⚫ | |||
=== |
===Image comment=== |
||
With this combo box you can choose the background of the picture you make. |
|||
⚫ | |||
* '''White''' creates a plain white background (for e.g. printings) |
|||
* '''Black''' plain black background |
|||
⚫ | |||
* Select the {{RadioButton|TRUE|Insert MIBA}} option to add [[MIBA]] information to the file. Not all image formats support this. |
|||
===== Creation method ===== |
|||
* Or select the {{RadioButton|TRUE|Insert comment}} option and type a comment in the text field to embed a comment in the file. Not all image formats support this. |
|||
With this combo box you can set how the image data is collected (rendered): |
|||
* Check the {{CheckBox|TRUE|Add watermark}} checkbox to add a watermark. The watermark is placed in the lower left corner of the image and consists of the FreeCAD logo and name above the main FreeCAD URL: [http://www.freecadweb.org www.freecadweb.org]. |
|||
⚫ | |||
⚫ | * '''Framebuffer ( |
||
⚫ | |||
* '''Offscreen (old)''': It only uses functions from the library Coin3d. This method does not support multi-sampling, relies heavily on graphic driver and on many modern Linux systems it does not work. It is a real off-screen rendering method that doesn't require an OpenGL window. |
|||
==Notes== |
|||
To turn on multi-sampling (anti-aliasing), use the option '''[[Preferences_Editor#3D_View|Anti-Aliasing]]''' in the [[Preferences_Editor|preferences]]. |
|||
* The number of available image file formats may vary depending on your OS. |
|||
===== Comment ===== |
|||
* Some OpenGL drivers don't allow renderings above a certain maximum size. |
|||
Some image formats can embed a comment in to the picture. In case you choose one of this formats you can insert a comment or use the comment field for the '''[[MIBA]]''' information. |
|||
==Preferences== |
|||
* The 3D view background can be changed in the preferences: {{MenuCommand|Edit → Preferences... → Display → Colors → Background color}}. See [[Preferences_Editor#Colors|Preferences Editor]]. |
|||
* To change the 3D view anti-aliasing: {{MenuCommand|Edit → Preferences... → Display → 3D view → Rendering → Anti-Aliasing}}. See [[Preferences_Editor#3D_View|Preferences Editor]]. |
|||
⚫ | |||
It is possible to create screenshots with python code. |
|||
⚫ | |||
It's also possible to save the screen via python: |
|||
{{Code|code= |
{{Code|code= |
||
Gui.ActiveDocument.ActiveView.saveImage('C:/temp/test.png',1656,783,'Current') |
Gui.ActiveDocument.ActiveView.saveImage('C:/temp/test.png',1656,783,'Current') |
||
}} |
}} |
||
This script makes a series of pictures of different sizes and from different |
|||
This script saves a series of screenshots of different sizes and from different directions. The camera type, orthographic or perspective, is also changed. |
|||
{{Code|code= |
{{Code|code= |
||
import Part,PartGui |
import Part, PartGui |
||
# |
# Loading test part |
||
Part.open( |
Part.open('C:/Documents and Settings/jriegel/My Documents/Projects/FreeCAD/data/Blade.stp') |
||
OutDir = ' |
OutDir = 'C:/temp/' |
||
# |
# Creating images with different Views, Cameras and sizes |
||
for p in [ |
for p in ['PerspectiveCamera','OrthographicCamera']: |
||
Gui.SendMsgToActiveView(p) |
Gui.SendMsgToActiveView(p) |
||
for f in [ |
for f in ['ViewAxo','ViewFront','ViewTop']: |
||
Gui.SendMsgToActiveView(f) |
Gui.SendMsgToActiveView(f) |
||
for x,y in [[500,500],[1000,3000],[3000,1000],[3000,3000],[8000,8000]]: |
for x,y in [[500,500],[1000,3000],[3000,1000],[3000,3000],[8000,8000]]: |
||
Gui.ActiveDocument.ActiveView.saveImage(OutDir + |
Gui.ActiveDocument.ActiveView.saveImage(OutDir + 'Blade_' + p +'_' + f + '_' + `x` + '_' + `y` + '.jpg',x,y,'White') |
||
Gui.ActiveDocument.ActiveView.saveImage(OutDir + |
Gui.ActiveDocument.ActiveView.saveImage(OutDir + 'Blade_' + p +'_' + f + '_' + `x` + '_' + `y` + '.png',x,y,'Transparent') |
||
# |
# Close active document |
||
App.closeDocument(App.ActiveDocument.Name) |
App.closeDocument(App.ActiveDocument.Name) |
||
}} |
}} |
||
{{ |
{{Docnav |
||
|[[Std_DlgParameter|Std DlgParameter]] |
|||
|[[Std_SceneInspector|Std SceneInspector]] |
|||
|[[Std_Tools_Menu|Std Tools Menu]] |
|||
|IconL=Std_DlgParameter.svg |
|||
|IconR= |
|||
|IconC=Freecad.svg |
|||
}} |
|||
{{Std Base navi{{#translation:}}}} |
{{Std Base navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
|||
{{clear}} |
|||
{{Userdocnavi{{#translation:}}}} <!--Do not add this line inside of translation tags --> |
Revision as of 06:33, 3 May 2020
Std ViewScreenShot |
Системное название |
---|
Std ViewScreenShot |
Расположение в меню |
Панели инструментов → Сохранить изображение... |
Верстаки |
Все |
Быстрые клавиши |
Нет |
Представлено в версии |
- |
См. также |
... |
Description
The Std ViewScreenShot command opens a dialog box to create an image file, a screenshot, from the current 3D view.
The Save picture dialog box after pressing the Extended button
Usage
- Select the View → Save picture... option from the menu.
- The Save picture dialog box opens.
- Optionally press the Extended button to reveal an additional panel in the dialog box. For more information see Options.
- Optionally browse to the correct folder.
- Enter a filename and select the file type.
- Press the Save button to create the image file and close the dialog box.
Options
Image dimensions
- Select a standard size from the Standard sizes dropdown list. Or specify the Width and Height for a custom size.
- Optionally press an Aspect ratio button to set the width-to-height ratio of the image. If the Width input box has the focus the height of the image will change and vice versa.
Image properties
- Select an option from the Background dropdown list:
- Current. This option uses the background of the 3D view.
- White.
- Black.
- Transparent. Not all image formats support transparency.
- Select an option from the Creation method dropdown list:
- Offscreen (New). This is the default method. This method supports anti-aliasing. Technical information: The most important classes for this method are Qt's QOffscreenSurface and QOpenGLFramebufferObject.
- Offscreen (Old). This method does not work on many modern Linux systems as it relies on the graphics driver. This method does not support anti-aliasing. Technical information: This is a real off-screen rendering method that only uses functions from the Coin3d library.
- Framebuffer (custom). This method supports anti-aliasing. Technical information: If anti-aliasing is off, this method reads the image directly from the graphics renderer, else it renders to a framebuffer and gets the image from there. The key part of this method is Qt's QOpenGLFramebufferObject class.
- Framebuffer (as is). This method uses the same techniques as Framebuffer (custom). It also supports anti-aliasing but has some limitations related to custom sizes and always uses the current background of the 3D view.
Image comment
- Select the Insert MIBA option to add MIBA information to the file. Not all image formats support this.
- Or select the Insert comment option and type a comment in the text field to embed a comment in the file. Not all image formats support this.
- Check the Add watermark checkbox to add a watermark. The watermark is placed in the lower left corner of the image and consists of the FreeCAD logo and name above the main FreeCAD URL: www.freecadweb.org.
Notes
- The number of available image file formats may vary depending on your OS.
- Some OpenGL drivers don't allow renderings above a certain maximum size.
Preferences
- The 3D view background can be changed in the preferences: Edit → Preferences... → Display → Colors → Background color. See Preferences Editor.
- To change the 3D view anti-aliasing: Edit → Preferences... → Display → 3D view → Rendering → Anti-Aliasing. See Preferences Editor.
Scripting
It is possible to create screenshots with python code.
Gui.ActiveDocument.ActiveView.saveImage('C:/temp/test.png',1656,783,'Current')
This script saves a series of screenshots of different sizes and from different directions. The camera type, orthographic or perspective, is also changed.
import Part, PartGui
# Loading test part
Part.open('C:/Documents and Settings/jriegel/My Documents/Projects/FreeCAD/data/Blade.stp')
OutDir = 'C:/temp/'
# Creating images with different Views, Cameras and sizes
for p in ['PerspectiveCamera','OrthographicCamera']:
Gui.SendMsgToActiveView(p)
for f in ['ViewAxo','ViewFront','ViewTop']:
Gui.SendMsgToActiveView(f)
for x,y in [[500,500],[1000,3000],[3000,1000],[3000,3000],[8000,8000]]:
Gui.ActiveDocument.ActiveView.saveImage(OutDir + 'Blade_' + p +'_' + f + '_' + `x` + '_' + `y` + '.jpg',x,y,'White')
Gui.ActiveDocument.ActiveView.saveImage(OutDir + 'Blade_' + p +'_' + f + '_' + `x` + '_' + `y` + '.png',x,y,'Transparent')
# Close active document
App.closeDocument(App.ActiveDocument.Name)
Std Base
- Стандартное меню: Файл, Правка, Вид, Инструменты, Макросы, Окна, Справка
- Структура: Std Part, Std Group, Std LinkMake
- Файл: Создать, Открыть, Закрыть, Закрыть всё, Сохранить, Сохранить как, Сохранить копию, Сохранить всё, Вернуться, Импортировать, Экспортировать, Объединить проект, Информация о проекте, Печать, Предварительный просмотр, Экспортировать в PDF, Недавние файлы, Выход
- Правка: Отменить, Вернуть, Вырезать, Копировать, Вставить, Дублировать выбранное, Обновить, Выделить область, Box element selection, Выбрать всё, Удалить, Расположение, Выравнивание, Редактировать/закончить редактирование, Настройки
- Вид: Создать новый вид, Ортогональная проекция, Перспективная проекция, На весь экран, Стандартные виды (Уместить всё, Уместить выделенное, Isometric, Dimetric, Trimetric, Спереди, Сверху, Справа, Сзади, Снизу, Слева, Повернуть влево, Повернуть вправо), Freeze display (Save views, Load views, Freeze view, Clear views), Стиль представления (Как есть, Плоские линии, Shaded, Каркас, Точки, Скрытые линии, Без затенения), Bounding box, Стерео (Стерео красный/голубой, Четверная буферизация стерео, Стерео с чередованием строк, Стерео с чередованием столбцов, Выключить стерео, Выводить положения камеры), Масштаб (Увеличить, Уменьшить, Увеличить область), Окно документа (Закреплённое, Откреплённое, На весь экран), Показать/скрыть оси координат, Плоскость сечения, Текстурирование, Видимость (Видимость, Показать выделенные, Скрыть выделенные, Выбрать видимые объекты, Инвертировать все видимости, Показать все объекты, Скрыть все объекты, Откл/вкл выделяемость, Показывать замеры, Удалить замер), Навигация/редактирование, Внешний вид, Случайный цвет, Верстак, Панели инструментов (Файл, Верстак, Макрос, Вид, Структура, Навигация), Панели (Отчёт, Иерархия документа, Окно свойств, Просмотр выделения, Комбо панель, Консоль Python, DAG view), Tree view actions (Sync view, Sync selection, Sync placement, Pre-selection, Record selection, Single document, Multi document, Collapse/expand, Initiate dragging, Go to selection), Строка состояния
- Инструменты: Редактор параметров, Сохранить изображение, Инспектор сцены, Граф зависимостей, Project utility, Измерить расстояние, Text document, Поворотный просмотр, Конвертор величин, Настройка, Addon manager
- Макросы: Запись макроса, Остановить запись макроса, Макрос, Выполнить макрос, Отладка макросов, Остановить отладку, Шаг с обходом, Шаг с заходом, Установить/снять точку останова
- Окна: Следующее, Предыдущее, Плиткой, Каскадом, Окна
- Справка: Справка, Сайт FreeCAD, Пользовательская документация, Документация по созданию скриптов на Python, Автоматически сгенерированная документация Python, Форум FreeCAD, FreeCAD ЧаВо, О FreeCAD, Что это?
Документация пользователя
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework