PsdLayer

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage

public final class PsdLayer extends CustomPackage

Represents a layer in a PSD file.

Learn more

Methods

Method Description
getBitsPerPixel() Gets the bits per pixel value.
getChannelCount() Gets the number of channels.
getFlags() Gets the layer flags.
getLength() Gets the overall layer length in bytes.
getOpacity() Gets the layer opacity.
getTop() Gets the top layer position.
getLeft() Gets the left layer position.
getBottom() Gets the bottom layer position.
getRight() Gets the right layer position.
getHeight() Gets the height.
getWidth() Gets the width.
getName() Gets the layer name.

getBitsPerPixel()

public final int getBitsPerPixel()

Gets the bits per pixel value.

Returns: int - The bits per pixel value.

getChannelCount()

public final int getChannelCount()

Gets the number of channels.

Returns: int - The number of channels.

getFlags()

public final PsdLayerFlags getFlags()

Gets the layer flags.

Returns: PsdLayerFlags - The flags.

getLength()

public final int getLength()

Gets the overall layer length in bytes.

Returns: int - The overall layer length in bytes.

getOpacity()

public final byte getOpacity()

Gets the layer opacity. 0 = transparent, 255 = opaque.

Returns: byte - The opacity.

getTop()

public final int getTop()

Gets the top layer position.

Returns: int - The top layer position.

getLeft()

public final int getLeft()

Gets the left layer position.

Returns: int - The left layer position.

getBottom()

public final int getBottom()

Gets the bottom layer position.

Returns: int - The bottom layer position.

getRight()

public final int getRight()

Gets the right layer position.

Returns: int - The right layer position.

getHeight()

public final int getHeight()

Gets the height.

Returns: int - The height.

getWidth()

public final int getWidth()

Gets the width.

Returns: int - The width.

getName()

public final String getName()

Gets the layer name.

Returns: java.lang.String - The layer name.