Package magick
Class DrawInfo
java.lang.Object
magick.Magick
magick.DrawInfo
Encapsulation of the ImageMagick DrawInfo structure.
- Author:
- Eric Yeo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finalize()
If the garbabe collector removes us, we had better release the memory we occupy.Get the border_color attribute in the DrawInfo handle.int
Get the decorate attribute in the DrawInfo handle.getFill()
Get the fill attribute in the DrawInfo handle.getFont()
Get the font field in the DrawInfo.Get the geometry field in the DrawInfo.int
Get the gravity attribute in the DrawInfo handle.double
Get the interline_spacing attribute in the DrawInfo handle.double
Get the interword_spacing attribute in the DrawInfo handle.double
Get the kerning attribute in the DrawInfo handle.int
Get the opacity attribute in the DrawInfo handle.double
Get the pointsize attribute in the DrawInfo handle.Get the primitive field in the DrawInfo.Get the stroke attribute in the DrawInfo handle.boolean
Return the stroke_antialias attribute in the DrawInfo handle.double
Get the stroke_width attribute in the DrawInfo handle.getText()
Get the text field in the DrawInfo.boolean
Return the text_antialias attribute in the DrawInfo handle.getTile()
Get the tile image from the DrawInfo.Get the undercolor attribute in the DrawInfo handle.void
setBorderColor
(PixelPacket borderColor) Set the border_color attribute in the DrawInfo handle.void
setDecorate
(int decoration) Set the decorate attribute in the DrawInfo handle.void
setFill
(PixelPacket fill) Set the fill attribute in the DrawInfo handle.void
Set the font field in the DrawInfo.void
setGeometry
(String geometry) Set the geometry field in the DrawInfo.void
setGravity
(int gravity) Set the gravity attribute in the DrawInfo handle.void
setInterlineSpacing
(double interlineSpacing) Set the interline_spacing attribute in the DrawInfo handle.void
setInterwordSpacing
(double interwordSpacing) Set the interword_spacing attribute in the DrawInfo handle.void
setKerning
(double kerning) Set the kerning attribute in the DrawInfo handle.void
setOpacity
(int opacity) Set the opacity attribute in the DrawInfo handle.void
setPointsize
(double pointsize) Set the pointsize attribute in the DrawInfo handle.void
setPrimitive
(String primitive) Set the primitive field in the DrawInfo.void
setStroke
(PixelPacket stroke) Set the stroke attribute in the DrawInfo handle.void
setStrokeAntialias
(boolean strokeAntialias) Set the stroke_antialias attribute in the DrawInfo handle.void
setStrokeWidth
(double strokeWidth) Set the stroke_width attribute in the DrawInfo handle.void
Set the text field in the DrawInfo.void
setTextAntialias
(boolean textAntialias) Set the text_antialias attribute in the DrawInfo handle.void
setTile
(MagickImage image) Set the tile image in the DrawInfo.void
setUnderColor
(PixelPacket underColor) Set the undercolor attribute in the DrawInfo handle.Methods inherited from class magick.Magick
parseImageGeometry, queryFonts
-
Constructor Details
-
DrawInfo
Constructor. Create a DrawInfo structure from defaults in the ImageInfo structure.- Parameters:
imageInfo
- default values for DrawInfo this taken from this- Throws:
MagickException
- if any error occurs
-
-
Method Details
-
finalize
protected void finalize()If the garbabe collector removes us, we had better release the memory we occupy. -
setPrimitive
Set the primitive field in the DrawInfo.- Parameters:
primitive
- value of the primitive field- Throws:
MagickException
- if any error occurs
-
getPrimitive
Get the primitive field in the DrawInfo.- Returns:
- value of the primitive field.
- Throws:
MagickException
- if any error occurs
-
getText
Get the text field in the DrawInfo.- Returns:
- value of the text field.
- Throws:
MagickException
- if any error occurs
-
setText
Set the text field in the DrawInfo.- Parameters:
text
- value of the text field- Throws:
MagickException
- if any error occurs
-
getGeometry
Get the geometry field in the DrawInfo.- Returns:
- value of the geometry field.
- Throws:
MagickException
- if any error occurs
-
setGeometry
Set the geometry field in the DrawInfo.- Parameters:
geometry
- value of the geometry field- Throws:
MagickException
- if any error occurs
-
setFont
Set the font field in the DrawInfo.- Parameters:
font
- value of the font field- Throws:
MagickException
- if any error occurs
-
getFont
Get the font field in the DrawInfo.- Returns:
- value of the font field.
- Throws:
MagickException
- if any error occurs
-
setStrokeAntialias
Set the stroke_antialias attribute in the DrawInfo handle.- Parameters:
strokeAntialias
- whether antialiasing is enable- Throws:
MagickException
- if any error occurs
-
getStrokeAntialias
Return the stroke_antialias attribute in the DrawInfo handle.- Returns:
- value of the stroke_antialias attribute in DrawInfo
- Throws:
MagickException
- if any error occurs
-
setTextAntialias
Set the text_antialias attribute in the DrawInfo handle.- Parameters:
textAntialias
- whether antialiasing is enable- Throws:
MagickException
- if any error occurs
-
getTextAntialias
Return the text_antialias attribute in the DrawInfo handle.- Returns:
- value of the text_antialias attribute in DrawInfo
- Throws:
MagickException
- if any error occurs
-
setGravity
Set the gravity attribute in the DrawInfo handle.- Parameters:
gravity
- the new GravityType value- Throws:
MagickException
- if any error occurs- See Also:
-
getGravity
Get the gravity attribute in the DrawInfo handle.- Returns:
- the value of the gravity attribute in the DrawInfo
- Throws:
MagickException
- if any error occurs- See Also:
-
setOpacity
Set the opacity attribute in the DrawInfo handle.- Parameters:
opacity
- the new opacity value- Throws:
MagickException
- if any error occurs
-
getOpacity
Get the opacity attribute in the DrawInfo handle.- Returns:
- the value of the opacity attribute in the DrawInfo
- Throws:
MagickException
- if any error occurs
-
setDecorate
Set the decorate attribute in the DrawInfo handle.- Parameters:
decoration
- the new DecorationType value- Throws:
MagickException
- if any error occurs- See Also:
-
getDecorate
Get the decorate attribute in the DrawInfo handle.- Returns:
- the value of the decorate attribute in the DrawInfo
- Throws:
MagickException
- if any error occurs- See Also:
-
setKerning
Set the kerning attribute in the DrawInfo handle.- Parameters:
kerning
- value of the kerning attribute- Throws:
MagickException
- if any error occurs
-
getKerning
Get the kerning attribute in the DrawInfo handle.- Returns:
- the value of the kerning attribute in DrawInfo
- Throws:
MagickException
- if any error occurs
-
setInterwordSpacing
Set the interword_spacing attribute in the DrawInfo handle.- Parameters:
interwordSpacing
- value of the interword_spacing attribute- Throws:
MagickException
- if any error occurs
-
getInterwordSpacing
Get the interword_spacing attribute in the DrawInfo handle.- Returns:
- the value of the interword_spacing attribute in DrawInfo
- Throws:
MagickException
- if any error occurs
-
setInterlineSpacing
Set the interline_spacing attribute in the DrawInfo handle.- Parameters:
interlineSpacing
- value of the interline_spacing attribute- Throws:
MagickException
- if any error occurs
-
getInterlineSpacing
Get the interline_spacing attribute in the DrawInfo handle.- Returns:
- the value of the interline_spacing attribute in DrawInfo
- Throws:
MagickException
- if any error occurs
-
setStrokeWidth
Set the stroke_width attribute in the DrawInfo handle.- Parameters:
strokeWidth
- value of the stroke_width attribute- Throws:
MagickException
- if any error occurs
-
getStrokeWidth
Get the stroke_width attribute in the DrawInfo handle.- Returns:
- the value of the stroke_width attribute in DrawInfo
- Throws:
MagickException
- if any error occurs
-
setPointsize
Set the pointsize attribute in the DrawInfo handle.- Parameters:
pointsize
- value of the pointsize attribute- Throws:
MagickException
- if any error occurs
-
getPointsize
Get the pointsize attribute in the DrawInfo handle.- Returns:
- the value of the pointsize attribute in DrawInfo
- Throws:
MagickException
- if any error occurs
-
setFill
Set the fill attribute in the DrawInfo handle.- Parameters:
fill
- new value of the fill attribute- Throws:
MagickException
- if any error occurs
-
getFill
Get the fill attribute in the DrawInfo handle.- Returns:
- the fill attribute in the DrawInfo handle
- Throws:
MagickException
- if any error occurs
-
setStroke
Set the stroke attribute in the DrawInfo handle.- Parameters:
stroke
- new value of the fill attribute- Throws:
MagickException
- if any error occurs
-
getStroke
Get the stroke attribute in the DrawInfo handle.- Returns:
- the stroke attribute in the DrawInfo handle
- Throws:
MagickException
- if any error occurs
-
setUnderColor
Set the undercolor attribute in the DrawInfo handle.- Parameters:
underColor
- new value of the fill attribute- Throws:
MagickException
- if any error occurs
-
getUnderColor
Get the undercolor attribute in the DrawInfo handle.- Returns:
- the undercolor attribute in the DrawInfo handle
- Throws:
MagickException
- if any error occurs
-
setBorderColor
Set the border_color attribute in the DrawInfo handle.- Parameters:
borderColor
- new value of the fill attribute- Throws:
MagickException
- if any error occurs
-
getBorderColor
Get the border_color attribute in the DrawInfo handle.- Returns:
- the corber_color attribute in the DrawInfo handle
- Throws:
MagickException
- if any error occurs
-
setTile
Set the tile image in the DrawInfo.- Parameters:
image
- the tile image to set- Throws:
MagickException
- if any error occurs
-
getTile
Get the tile image from the DrawInfo.- Returns:
- a copy of the title image
- Throws:
MagickException
- if any error occurs
-