public final class ImageResourceBlock extends Object implements IMetadataProperty
Represents Photoshop Image Resource block.
<br></br>
Image resource blocks are the basic building unit of several file formats, including Photoshop's native file format, JPEG, and TIFF.
Image resources are used to store non-pixel data associated with images, such as pen tool paths.
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Gets the resource data.
|
int |
getDataSize()
Gets the size of the data.
|
int |
getDefinedId()
Gets the defined identifier.
|
String |
getFormattedValue()
Gets the formatted value.
|
long |
getId()
Gets the unique identifier for the resource.
|
String |
getName()
Gets or sets property name.
|
String |
getPropertyName()
Gets or sets property name.
|
void |
setName(String value)
Gets or sets property name.
|
String |
toString()
Returns a
System.String that represents this instance. |
public final long getId()
Gets the unique identifier for the resource.
Value: The identifier.public final int getDefinedId()
Gets the defined identifier.
Value: The defined identifier.public final String getName()
Gets or sets property name.
Value: Property name.getName
in interface IMetadataProperty
public final void setName(String value)
Gets or sets property name.
Value: Property name.setName
in interface IMetadataProperty
public final String getPropertyName()
Gets or sets property name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).
Value: Property name.public final int getDataSize()
Gets the size of the data.
Value: Data size.public final byte[] getData()
Gets the resource data. It is padded to make the size even.
Value: The data.public final String getFormattedValue()
Gets the formatted value.
getFormattedValue
in interface IMetadataProperty
Copyright © 2017. All rights reserved.