public class TextureBrush extends Brush
Represents texture brush.
Constructor and Description |
---|
TextureBrush()
Initializes a new instance of the TextureBrush class with default values.
|
TextureBrush(InputStream imageStream)
Initializes a new instance of the TextureBrush class with image stream option.
|
TextureBrush(String imageFilePath)
Initializes a new instance of the TextureBrush class with image file.
|
Modifier and Type | Method and Description |
---|---|
String |
getImageFilePath()
Gets or sets the texture image file path.
|
InputStream |
getImageStream()
Gets or sets the texture image stream.
|
void |
setImageFilePath(String value)
Gets or sets the texture image file path.
|
void |
setImageStream(InputStream value)
Gets or sets the texture image stream.
|
public TextureBrush()
Initializes a new instance of the TextureBrush class with default values.
public TextureBrush(InputStream imageStream)
Initializes a new instance of the TextureBrush class with image stream option.
imageStream
- Image stream.public TextureBrush(String imageFilePath)
Initializes a new instance of the TextureBrush class with image file.
imageFilePath
- Image file path.public final String getImageFilePath()
Gets or sets the texture image file path. This property is used only if ImageStream is not specified.
public final InputStream getImageStream()
Gets or sets the texture image stream. If this property is specified it is always used instead ImageFilePath.
public final void setImageFilePath(String value)
Gets or sets the texture image file path. This property is used only if ImageStream is not specified.
public final void setImageStream(InputStream value)
Gets or sets the texture image stream. If this property is specified it is always used instead ImageFilePath.