save_picture#
- class ansys.cfx.core.generated.pre_processing.settings_261.save_picture.save_picture(name: str | None = None, parent=None)#
Bases:
CommandSaves an image of the current view.
- Parameters:
- file_name
str Name of the image file to save.
- format
str The image format. Allowed values include:
‘png’: Portable Network Graphics (PNG)
‘avz’: Ansys Viewer Format
‘jpg’: JPEG
‘ppm’: Portable Pixel Map (PPM)
‘ps’: PostScript
‘eps’: Encapsulated PostScript.
- use_white_backgroundbool
Save the image with a white background.
- use_transparent_backgroundbool
Save the image with a transparent background (PNG images only). Needs GPU rendering to be available and enabled.
- use_enhanced_outputbool
Process the image with antialiasing. Not available with GPU rendering.
- use_screen_sizebool
When this is enabled, the saved image will have the same height and width (in pixels) as the current viewer size.
- image_size_option
str Set the image size option. Only applicable if ‘Use Screen Size’ is disabled. Allowed values are ‘HD’, ‘FHD’, ‘QHD’, ‘4k’, ‘8k’ and ‘Custom’.
- image_height
int Set the image height in pixels. Only applicable if the image size option is set to ‘Custom’ and ‘Use Screen Size’ is disabled.
- image_width
int Set the image width in pixels. Only applicable if the image size option is set to ‘Custom’ and ‘Use Screen Size’ is disabled.
- image_scale
int Scale the size of bitmap images to a fraction (in percent) of the current viewer window size. Only applicable if ‘Use Screen Size’ is enabled.
- image_quality
int Specify the image quality (JPEG images only). A value of 100 specifies the highest quality; a value of 1 specifies the lowest quality.
- tolerance
real Increasing the tolerance should result in faster image generation, but may introduce defects in the output. The default is 1.0e-04, with a range from 0 to 1. Not available with GPU rendering.
- file_name
Arguments
Argument |
Summary |
|---|---|
Name of the image file to save. |
|
The image format. Allowed values include: |
|
Save the image with a white background. |
|
Save the image with a transparent background (PNG images |
|
Process the image with antialiasing. Not available with GPU |
|
When this is enabled, the saved image will have the same |
|
Set the image size option. Only applicable if ‘Use Screen |
|
Set the image height in pixels. Only applicable if the image |
|
Set the image width in pixels. Only applicable if the image |
|
Scale the size of bitmap images to a fraction (in percent) of |
|
Specify the image quality (JPEG images only). A value of 100 |
|
Increasing the tolerance should result in faster image |
Included in:
Parent |
Summary |
|---|---|
File-related operations for a CFX pre-processing session. |