-
-
January 12, 2021 at 2:20 pm
Feebletom
SubscriberI want to create a button that exports the current screen with a white background and at high resolution. nIt looks like GraphicsImageExportSettings.Background(white) is the correct syntax but I don't know how to make this work with ExtAPI.Graphics.ExportImage. The ACT API Reference Guide wasn't much help.nAlso, is it possible to change the scale, via coding, prior to exporting the image?nThank you.n -
January 12, 2021 at 9:38 pm
Feebletom
SubscriberI found this in the Ansys help but can't get it to work:n#export model to AVZ file with white backgroundnsetting3d = Ansys.Mechanical.Graphics.Graphics3DExportSettings()nsetting3d.Background = GraphicsBackgroundType.WhitenGraphics.Export3D(c:\\avz_white.avz, Graphics3DExportFormat.AVZ, setting3d)nn#export image with enhanced resolution to PNG filensetting2d = Ansys.Mechanical.Graphics.GraphicsImageExportSettings()nsetting2d.Resolution = GraphicsResolutionType.EnhancedResolutionnGraphics.ExportImage(c:\\temp\\image_enhancement.png, GraphicsImageExportFormat.PNG, setting2d)n -
January 28, 2021 at 1:42 pm
Feebletom
SubscriberOk, I got the white background to apply to the viewer files .nImage files save to the correct folder but they're low quality. I tried high quality as well but it has no effect. Is there something I'm missing with the resolution? The script runs just fine but the resolution is not adjusting. n
-
Viewing 2 reply threads
- The topic ‘Where can I find examples for settings for ExtAPI.Graphics.ExportImage?’ is closed to new replies.
Innovation Space
Trending discussions
Top Contributors
-
5824
-
1906
-
1420
-
1305
-
1021
Top Rated Tags
© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.