public final class ResolutionInfoResource extends ResourceBlock
The resolution info resource
ResourceBlock.ResourceBlockState
RESOUCE_BLOCK_SIGNATURE
Constructor and Description |
---|
ResolutionInfoResource()
Initializes a new instance of the
ResolutionInfoResource class. |
Modifier and Type | Method and Description |
---|---|
int |
getDataSize()
Gets the resource data size in bytes.
|
FixedPointDecimal |
getHDpi()
Horizontal DPI.
|
int |
getHeightDisplayUnit()
Gets or sets the height display unit.
|
int |
getHResDisplayUnit()
Display units for horizontal resolution.
|
int |
getMinimalVersion()
Gets the minimal required PSD version.
|
FixedPointDecimal |
getVDpi()
Vertical DPI.
|
int |
getVResDisplayUnit()
Display units for vertical resolution.
|
int |
getWidthDisplayUnit()
Gets or sets the width display unit.
|
void |
setHDpi(FixedPointDecimal value)
Horizontal DPI.
|
void |
setHeightDisplayUnit(int value)
Gets or sets the height display unit.
|
void |
setHResDisplayUnit(int value)
Display units for horizontal resolution.
|
void |
setVDpi(FixedPointDecimal value)
Vertical DPI.
|
void |
setVResDisplayUnit(int value)
Display units for vertical resolution.
|
void |
setWidthDisplayUnit(int value)
Gets or sets the width display unit.
|
getID, getName, getSignature, getSize, save, setID, setName, validateValues
public ResolutionInfoResource()
Initializes a new instance of the ResolutionInfoResource
class.
public int getDataSize()
Gets the resource data size in bytes.
Value: The resource data size.getDataSize
in class ResourceBlock
public int getMinimalVersion()
Gets the minimal required PSD version.
Value: The minimal PSD version.getMinimalVersion
in class ResourceBlock
public FixedPointDecimal getHDpi()
Horizontal DPI.
Value: The horizontal dpi.public void setHDpi(FixedPointDecimal value)
Horizontal DPI.
Value: The horizontal dpi.public FixedPointDecimal getVDpi()
Vertical DPI.
Value: The vertical dpi.public void setVDpi(FixedPointDecimal value)
Vertical DPI.
Value: The vertical dpi.public 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.public 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.public int getVResDisplayUnit()
Display units for vertical resolution.
Value: The vertical resolution display unit.public void setVResDisplayUnit(int value)
Display units for vertical resolution.
Value: The vertical resolution display unit.public int getWidthDisplayUnit()
Gets or sets the width display unit.
Value: The width display unit.public void setWidthDisplayUnit(int value)
Gets or sets the width display unit.
Value: The width display unit.public int getHeightDisplayUnit()
Gets or sets the height display unit.
Value: The height display unit.public void setHeightDisplayUnit(int value)
Gets or sets the height display unit.
Value: The height display unit.