Class VectorImageBuilder
- java.lang.Object
-
- ej.microvg.VectorImageBuilder
-
@Deprecated public class VectorImageBuilder extends Object
Deprecated.Use aBufferedVectorImageinstead.
-
-
Constructor Summary
Constructors Constructor Description VectorImageBuilder(float width, float height)Deprecated.Creates a new builder for vector images.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description VectorImageBuilderaddGradientPath(Path path, LinearGradient gradient, VectorGraphicsPainter.FillType fillType)Deprecated.Adds the given path with specified gradient and fill type.VectorImageBuilderaddPath(Path path, int color, VectorGraphicsPainter.FillType fillType)Deprecated.Adds the given path with specified color and fill type.ResourceVectorImagebuild()Deprecated.Creates the vector image from the builder state.
-
-
-
Constructor Detail
-
VectorImageBuilder
public VectorImageBuilder(float width, float height)Deprecated.Creates a new builder for vector images.- Parameters:
width- the width of the imageheight- the height of the image- Throws:
IllegalArgumentException- if eitherwidthorheightis negative or zero.
-
-
Method Detail
-
addPath
public VectorImageBuilder addPath(Path path, int color, VectorGraphicsPainter.FillType fillType)
Deprecated.Adds the given path with specified color and fill type.The given color value is interpreted as a 32-bit ARGB color, where the high-order byte is the alpha channel and the remaining bytes contain the red, green and blue channels, respectively. A fully opaque color will have an alpha of
255, while a fully transparent color will have an alpha of0. For example, passing the color0xff0000ffto this method results in a path with an opaque blue fill.If the specified color is fully transparent (
0x00for the alpha channel), the path is not added.- Parameters:
path- the path to addcolor- the color to fill the path withfillType- the fill type to use- Returns:
- the builder instance.
- See Also:
GraphicsContext.OPAQUE,GraphicsContext.TRANSPARENT
-
addGradientPath
public VectorImageBuilder addGradientPath(Path path, LinearGradient gradient, VectorGraphicsPainter.FillType fillType)
Deprecated.Adds the given path with specified gradient and fill type.The colors of the gradient are interpreted as 32-bit ARGB colors, where the high-order byte is the alpha channel and the remaining bytes contain the red, green and blue channels, respectively. A fully opaque color will have an alpha of
255, while a fully transparent color will have an alpha of0. For example, the color0xff0000ffresults in an opaque blue.- Parameters:
path- the path to addgradient- the gradient to fill the path withfillType- the fill type to use- Returns:
- the builder instance.
- See Also:
GraphicsContext.OPAQUE,GraphicsContext.TRANSPARENT
-
build
public ResourceVectorImage build()
Deprecated.Creates the vector image from the builder state.The returned image is allocated dynamically and must be closed explicitly.
- Returns:
- a vector image
-
-