SaveImageFileOptions.width Property

Parent Object: SaveImageFileOptions
Defined in namespace "adsk::core" and the header file is <Core/Application/SaveImageFileOptions.h>

Description

Gets and set the width of the image to be created in pixels. A value of zero is valid and indicates the current width of the viewport is to be used. When the SaveImageFileOptions object is initially created, this is initialized to 0.

Syntax

"saveImageFileOptions_var" is a variable referencing a SaveImageFileOptions object.

# Get the value of the property.
propertyValue = saveImageFileOptions_var.width

# Set the value of the property.
saveImageFileOptions_var.width = propertyValue
"saveImageFileOptions_var" is a variable referencing a SaveImageFileOptions object.
#include <Core/Application/SaveImageFileOptions.h>

// Get the value of the property.
integer propertyValue = saveImageFileOptions_var->width();

// Set the value of the property, where value_var is an integer.
bool returnValue = saveImageFileOptions_var->width(value_var);

Property Value

This is a read/write property whose value is an integer.

Version

Introduced in version May 2022