PatternFormat
Inheritance: java.lang.Object, com.aspose.slides.PVIObject
All Implemented Interfaces: com.aspose.slides.IPatternFormat
public final class PatternFormat extends PVIObject implements IPatternFormat
Represents a pattern to fill a shape.
Methods
Method | Description |
---|---|
getVersion() | |
getPatternStyle() | Returns or sets the pattern style. |
setPatternStyle(byte value) | Returns or sets the pattern style. |
getForeColor() | Returns the foreground pattern color. |
getBackColor() | Returns the background pattern color. |
getTileImage(Color background, Color foreground) | Creates a tile image for the pattern fill with a specified colors. |
getTile(Color background, Color foreground) | Creates a tile image for the pattern fill with a specified colors. |
getTileImage(Color styleColor) | Creates a tile image for the pattern fill. |
getTile(Color styleColor) | Creates a tile image for the pattern fill. |
getVersion()
public long getVersion()
Version. Read-only long.
Returns: long
getPatternStyle()
public final byte getPatternStyle()
Returns or sets the pattern style. Read/write PatternStyle.
Returns: byte
setPatternStyle(byte value)
public final void setPatternStyle(byte value)
Returns or sets the pattern style. Read/write PatternStyle.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getForeColor()
public final IColorFormat getForeColor()
Returns the foreground pattern color. Read-only IColorFormat.
Returns: IColorFormat
getBackColor()
public final IColorFormat getBackColor()
Returns the background pattern color. Read-only IColorFormat.
Returns: IColorFormat
getTileImage(Color background, Color foreground)
public final BufferedImage getTileImage(Color background, Color foreground)
Creates a tile image for the pattern fill with a specified colors.
Parameters:
Parameter | Type | Description |
---|---|---|
background | java.awt.Color | The background java.awt.Color for the pattern. |
foreground | java.awt.Color | The foreground java.awt.Color for the pattern. |
Returns: java.awt.image.BufferedImage - Tile java.awt.image.BufferedImage.
getTile(Color background, Color foreground)
public final IImage getTile(Color background, Color foreground)
Creates a tile image for the pattern fill with a specified colors.
Parameters:
Parameter | Type | Description |
---|---|---|
background | java.awt.Color | The background java.awt.Color for the pattern. |
foreground | java.awt.Color | The foreground java.awt.Color for the pattern. |
Returns: IImage - Tile IImage.
getTileImage(Color styleColor)
public final BufferedImage getTileImage(Color styleColor)
Creates a tile image for the pattern fill.
Parameters:
Parameter | Type | Description |
---|---|---|
styleColor | java.awt.Color | The default java.awt.Color, defined in ShapeEx’s StyleEx object. Fill’s colors can depend on this. |
Returns: java.awt.image.BufferedImage - Tile java.awt.image.BufferedImage.
getTile(Color styleColor)
public final IImage getTile(Color styleColor)
Creates a tile image for the pattern fill.
Parameters:
Parameter | Type | Description |
---|---|---|
styleColor | java.awt.Color | The default java.awt.Color |