PrintScaleResource Class

Summary: Print Scale resource

Module: aspose.psd.fileformats.psd.resources

Full Name: aspose.psd.fileformats.psd.resources.PrintScaleResource

Inheritance: ResourceBlock

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
PrintScaleResource()Initializes a new instance of the PrintScaleResource class

Properties

NameTypeAccessDescription
RESOUCE_BLOCK_ME_SA_SIGNATURE [static]intrThe resource signature of ImageReady.
RESOUCE_BLOCK_SIGNATURE [static]intrThe regular Photoshop resource signature.
data_sizeintrGets the resource data size in bytes.
idshortr/wGets or sets the unique identifier for the resource.
minimal_versionintrGets the minimal required PSD version.
namestringr/wGets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).
scalefloatr/wGets or sets the scale.
signatureintrGets the resource signature. Should be always ‘8BIM’.
sizeintrGets the resource block size in bytes including its data.
styleshortr/wGets or sets the style.
x_locationfloatr/wGets or sets the x location.
y_locationfloatr/wGets or sets the y location.

Methods

NameDescription
save(stream)Saves the resource block to the specified stream.
validate_values()Validates the resource values.

Constructor: PrintScaleResource()

 PrintScaleResource() 

Initializes a new instance of the PrintScaleResource class

Method: save(stream)

 save(stream) 

Saves the resource block to the specified stream.

Parameters:

ParameterTypeDescription
streamStreamContainerThe stream to save the resource block to.