Creates svg icon. Can programmatically change icon color
Type Params | Return Type | Name and description |
---|---|---|
|
static java.awt.Image |
create(java.net.URL url) |
|
static java.awt.Image |
create(java.net.URL url, SVGColorReplacementEntry[] colors) |
|
static java.awt.image.BufferedImage |
createFX(java.lang.String path) |
|
static java.awt.image.BufferedImage |
createFX(java.net.URL url) |
|
static void |
setColorToTranscoderInput(TranscoderInput transcoderInput, SVGColorReplacementEntry[] colors) Change svg format icon colors to ones were provided. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Change svg format icon colors to ones were provided.
transcoderInput
- - input of an svg imagecolors
- - color entries, the origin field of which is an original color to be changed,
and the colorForReplacement is the color to replace the original one. To find the original colors of SVG images
seek for the "fill" or "stroke" attributes value.