ResolutionInfoResource

Inheritance: java.lang.Object, com.aspose.psd.fileformats.psd.ResourceBlock

public final class ResolutionInfoResource extends ResourceBlock

The resolution info resource

Constructors

ConstructorDescription
ResolutionInfoResource()Initializes a new instance of the ResolutionInfoResource class.

Fields

FieldDescription
ResouceBlockMeSaSignatureThe resource signature of ImageReady.
ResouceBlockSignatureThe regular Photoshop resource signature.

Methods

MethodDescription
equals(Object arg0)
getClass()
getDataSize()Gets the resource data size in bytes.
getHDpi()Horizontal DPI.
getHResDisplayUnit()Display units for horizontal resolution.
getHeightDisplayUnit()Gets or sets the height display unit.
getID()Gets or sets the unique identifier for the resource.
getMinimalVersion()Gets the minimal required PSD version.
getName()Gets or sets the resource name.
getSignature()Gets the resource signature.
getSize()Gets the resource block size in bytes including its data.
getVDpi()Vertical DPI.
getVResDisplayUnit()Display units for vertical resolution.
getWidthDisplayUnit()Gets or sets the width display unit.
hashCode()
notify()
notifyAll()
save(StreamContainer stream)Saves the resource block to the specified stream.
setHDpi(FixedPointDecimal value)Horizontal DPI.
setHResDisplayUnit(int value)Display units for horizontal resolution.
setHeightDisplayUnit(int value)Gets or sets the height display unit.
setID(short value)Gets or sets the unique identifier for the resource.
setLayerAndMaskInfo_internalized(LayerAndMaskInfo value)Gets or sets the layer and mask information.
setName(String value)Gets or sets the resource name.
setSignature_internalized(int signature)
setState_internalized(int value)Gets or sets the resource block state.
setVDpi(FixedPointDecimal value)Vertical DPI.
setVResDisplayUnit(int value)Display units for vertical resolution.
setWidthDisplayUnit(int value)Gets or sets the width display unit.
toString()
validateValues()Validates the resource values.
wait()
wait(long arg0)
wait(long arg0, int arg1)

ResolutionInfoResource()

public ResolutionInfoResource()

Initializes a new instance of the ResolutionInfoResource class.

ResouceBlockMeSaSignature

public static final int ResouceBlockMeSaSignature

The resource signature of ImageReady.

ResouceBlockSignature

public static final int ResouceBlockSignature

The regular Photoshop resource signature.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDataSize()

public int getDataSize()

Gets the resource data size in bytes.

Value: The resource data size.

Returns: int

getHDpi()

public final FixedPointDecimal getHDpi()

Horizontal DPI.

Value: The horizontal dpi.

Returns: FixedPointDecimal

getHResDisplayUnit()

public final int getHResDisplayUnit()

Display units for horizontal resolution. This only affects the user interface; the resolution is still stored in the PSD file as pixels/inch.

Value: The horizontal resolution display unit.

Returns: int

getHeightDisplayUnit()

public final int getHeightDisplayUnit()

Gets or sets the height display unit.

Value: The height display unit.

Returns: int

getID()

public final short getID()

Gets or sets the unique identifier for the resource.

Value: The unique identifier for the resource.

Returns: short

getMinimalVersion()

public int getMinimalVersion()

Gets the minimal required PSD version.

Value: The minimal PSD version.

Returns: int

getName()

public final String getName()

Gets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).

Value: The resource name.

Returns: java.lang.String

getSignature()

public final int getSignature()

Gets the resource signature. Should be always ‘8BIM’.

Value: The resource signature.

Returns: int

getSize()

public final int getSize()

Gets the resource block size in bytes including its data.

Value: The resource block size.

Returns: int

getVDpi()

public final FixedPointDecimal getVDpi()

Vertical DPI.

Value: The vertical dpi.

Returns: FixedPointDecimal

getVResDisplayUnit()

public final int getVResDisplayUnit()

Display units for vertical resolution.

Value: The vertical resolution display unit.

Returns: int

getWidthDisplayUnit()

public final int getWidthDisplayUnit()

Gets or sets the width display unit.

Value: The width display unit.

Returns: int

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

save(StreamContainer stream)

public final void save(StreamContainer stream)

Saves the resource block to the specified stream.

Parameters:

ParameterTypeDescription
streamStreamContainerThe stream to save the resource block to.

setHDpi(FixedPointDecimal value)

public final void setHDpi(FixedPointDecimal value)

Horizontal DPI.

Value: The horizontal dpi.

Parameters:

ParameterTypeDescription
valueFixedPointDecimal

setHResDisplayUnit(int value)

public final void setHResDisplayUnit(int value)

Display units for horizontal resolution. This only affects the user interface; the resolution is still stored in the PSD file as pixels/inch.

Value: The horizontal resolution display unit.

Parameters:

ParameterTypeDescription
valueint

setHeightDisplayUnit(int value)

public final void setHeightDisplayUnit(int value)

Gets or sets the height display unit.

Value: The height display unit.

Parameters:

ParameterTypeDescription
valueint

setID(short value)

public final void setID(short value)

Gets or sets the unique identifier for the resource.

Value: The unique identifier for the resource.

Parameters:

ParameterTypeDescription
valueshort

setLayerAndMaskInfo_internalized(LayerAndMaskInfo value)

public final void setLayerAndMaskInfo_internalized(LayerAndMaskInfo value)

Gets or sets the layer and mask information.

Value: The layer and mask information.

Parameters:

ParameterTypeDescription
valuecom.aspose.internal.fileformats.psd.sections.LayerAndMaskInfo

setName(String value)

public final void setName(String value)

Gets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).

Value: The resource name.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setSignature_internalized(int signature)

public void setSignature_internalized(int signature)

Parameters:

ParameterTypeDescription
signatureint

setState_internalized(int value)

public final void setState_internalized(int value)

Gets or sets the resource block state.

Value: The resource block state.

Parameters:

ParameterTypeDescription
valueint

setVDpi(FixedPointDecimal value)

public final void setVDpi(FixedPointDecimal value)

Vertical DPI.

Value: The vertical dpi.

Parameters:

ParameterTypeDescription
valueFixedPointDecimal

setVResDisplayUnit(int value)

public final void setVResDisplayUnit(int value)

Display units for vertical resolution.

Value: The vertical resolution display unit.

Parameters:

ParameterTypeDescription
valueint

setWidthDisplayUnit(int value)

public final void setWidthDisplayUnit(int value)

Gets or sets the width display unit.

Value: The width display unit.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

validateValues()

public void validateValues()

Validates the resource values.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int