public class TextLayer extends Layer implements com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
The text layer class
BLEND_SIGNATURE, LAYER_HEADER_SIZE
Modifier and Type | Method and Description |
---|---|
Font |
getFont()
Gets the font.
|
String |
getInnerText()
Gets the text of the layer
|
String |
getText()
Gets the text.
|
Size |
getTextBoundBox()
Gets the text bound box.
|
Color |
getTextColor()
Gets the color of the text.
|
void |
updateText(String text)
Updates the text.
|
void |
updateText(String text,
Color color)
Updates the text.
|
void |
updateText(String text,
float fontSize)
Updates the text.
|
void |
updateText(String text,
float fontSize,
Color color)
Updates the text.
|
void |
updateText(String text,
Point leftTopCoordinate)
Updates the text.
|
void |
updateText(String text,
Point leftTopCoordinate,
Color color)
Updates the text.
|
void |
updateText(String text,
Point leftTopCoordinate,
float fontSize)
Updates the text.
|
void |
updateText(String text,
Point leftTopCoordinate,
float fontSize,
Color color)
Updates the text.
|
addLayerMask, drawImage, equals, getBitsPerPixel, getBlendingOptions, getBlendModeKey, getBlendModeSignature, getBottom, getChannelInformation, getChannelsCount, getClipping, getDisplayName, getExtraLength, getFiller, getFillOpacity, getFlags, getHeight, getLayerBlendingRangesData, getLayerBounds, getLayerCreationDateTime, getLayerLock, getLayerMaskData, getLayerOptions, getLeft, getLength, getName, getOpacity, getResources, getRight, getSheetColorHighlight, getTop, getWidth, hasAlpha, hashCode, isVisible, isVisibleInGroup, mergeLayerTo, save, save, save, save, setBlendModeKey, setBottom, setChannelInformation, setClipping, setFiller, setFillOpacity, setFlags, setLayerBlendingRangesData, setLayerCreationDateTime, setLayerLock, setLayerMaskData, setLeft, setName, setOpacity, setResources, setRight, setSheetColorHighlight, setTop, setVisible, shallowCopy
adjustBrightness, adjustContrast, adjustGamma, adjustGamma, binarizeBradley, binarizeBradley, binarizeFixed, binarizeOtsu, cacheData, crop, dither, grayscale, isCached, resize, resize, rotate, rotateFlip
crop, dither, filter, getArgb32Pixel, getDefaultArgb32Pixels, getDefaultPixels, getDefaultRawData, getDefaultRawData, getHorizontalResolution, getImageOpacity, getModifyDate, getPixel, getPremultiplyComponents, getRawCustomColorConverter, getRawDataFormat, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getRawLineSize, getSkewAngle, getTransparentColor, getUpdateXmpData, getUseRawData, getVerticalResolution, getXmpData, hasTransparentColor, isRawDataAvailable, loadArgb32Pixels, loadArgb64Pixels, loadCmyk32Pixels, loadCmykPixels, loadPartialArgb32Pixels, loadPartialPixels, loadPixels, loadRawData, loadRawData, normalizeAngle, normalizeAngle, readArgb32ScanLine, readScanLine, replaceColor, replaceColor, replaceNonTransparentColors, replaceNonTransparentColors, rotate, saveArgb32Pixels, saveCmyk32Pixels, saveCmykPixels, savePixels, saveRawData, setArgb32Pixel, setHorizontalResolution, setPalette, setPixel, setPremultiplyComponents, setRawCustomColorConverter, setRawFallbackIndex, setRawIndexedColorConverter, setResolution, setTransparentColor, setTransparentColor, setUpdateXmpData, setUseRawData, setVerticalResolution, setXmpData, toBitmap, writeArgb32ScanLine, writeScanLine
canLoad, canLoad, canLoad, canLoad, canSave, create, getBackgroundColor, getBounds, getBufferSizeHint, getContainer, getDefaultOptions, getFileFormat, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getInterruptMonitor, getOriginalOptions, getPalette, getProgressEventHandler, getProgressEventHandlerInfo, getProportionalHeight, getProportionalWidth, getSize, hasBackgroundColor, isAutoAdjustPalette, load, load, load, load, load, load, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save, save, save, save, save, setAutoAdjustPalette, setBackgroundColor, setBackgroundColor, setBufferSizeHint, setInterruptMonitor, setPalette
getDataStreamContainer, save, save, save
close, dispose, getDisposed
getClass, notify, notifyAll, toString, wait, wait, wait
loadPartialArgb32Pixels
getRawDataSettings, isRawDataAvailable, loadRawData
public String getText()
Gets the text.
getText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
public final Size getTextBoundBox()
Gets the text bound box.
Value: The text bound box.public String getInnerText()
Gets the text of the layer
getInnerText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
public Font getFont()
Gets the font.
getFont
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
public Color getTextColor()
Gets the color of the text.
getTextColor
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
PsdImageException
- Error parsing color component datapublic void updateText(String text)
Updates the text.
updateText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
text
- The text value.public void updateText(String text, float fontSize)
Updates the text.
updateText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
text
- The text value.fontSize
- Size of the font.public void updateText(String text, Color color)
Updates the text.
updateText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
text
- The text value.color
- The color value.public void updateText(String text, float fontSize, Color color)
Updates the text.
updateText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
text
- The text value.fontSize
- Size of the font.color
- The color value.public void updateText(String text, Point leftTopCoordinate, float fontSize)
Updates the text.
updateText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
text
- The text value.leftTopCoordinate
- The left top coordinate.fontSize
- Size of the font.public void updateText(String text, Point leftTopCoordinate, Color color)
Updates the text.
updateText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
text
- The text value.leftTopCoordinate
- The left top coordinate.color
- The color value.public void updateText(String text, Point leftTopCoordinate)
Updates the text.
updateText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
text
- The text value.leftTopCoordinate
- The left top coordinate.public void updateText(String text, Point leftTopCoordinate, float fontSize, Color color)
Updates the text.
updateText
in interface com.aspose.imaging_internal.fileformats.psd.layers.ITypeToolResourceOperable
text
- The text value.leftTopCoordinate
- The left top coordinate.fontSize
- Size of the font.color
- The color value.