Encapsulation of the ImageMagick DrawInfo structure.
finalize
protected void finalize()
If the garbabe collector removes us, we had better release
the memory we occupy.
getBorderColor
public PixelPacket getBorderColor()
throws MagickException Get the border_color attribute in the DrawInfo handle.
- the corber_color attribute in the DrawInfo handle
getDecorate
public int getDecorate()
throws MagickException Get the decorate attribute in the DrawInfo handle.
- the value of the decorate attribute in the DrawInfo
getFill
public PixelPacket getFill()
throws MagickException Get the fill attribute in the DrawInfo handle.
- the fill attribute in the DrawInfo handle
getFont
public String getFont()
throws MagickException Get the font field in the DrawInfo.
getGeometry
public String getGeometry()
throws MagickException Get the geometry field in the DrawInfo.
- value of the geometry field.
getGravity
public int getGravity()
throws MagickException Get the gravity attribute in the DrawInfo handle.
- the value of the gravity attribute in the DrawInfo
getOpacity
public int getOpacity()
throws MagickException Get the opacity attribute in the DrawInfo handle.
- the value of the opacity attribute in the DrawInfo
getPointsize
public double getPointsize()
throws MagickException Get the pointsize attribute in the DrawInfo handle.
- the value of the pointsize attribute in DrawInfo
getPrimitive
public String getPrimitive()
throws MagickException Get the primitive field in the DrawInfo.
- value of the primitive field.
getStroke
public PixelPacket getStroke()
throws MagickException Get the stroke attribute in the DrawInfo handle.
- the stroke attribute in the DrawInfo handle
getStrokeAntialias
public boolean getStrokeAntialias()
throws MagickException Return the stroke_antialias attribute in the DrawInfo handle.
- value of the stroke_antialias attribute in DrawInfo
getStrokeWidth
public double getStrokeWidth()
throws MagickException Get the stroke_width attribute in the DrawInfo handle.
- the value of the stroke_width attribute in DrawInfo
getText
public String getText()
throws MagickException Get the text field in the DrawInfo.
getTextAntialias
public boolean getTextAntialias()
throws MagickException Return the text_antialias attribute in the DrawInfo handle.
- value of the text_antialias attribute in DrawInfo
getUnderColor
public PixelPacket getUnderColor()
throws MagickException Get the undercolor attribute in the DrawInfo handle.
- the undercolor attribute in the DrawInfo handle
setBorderColor
public void setBorderColor(PixelPacket borderColor)
throws MagickException Set the border_color attribute in the DrawInfo handle.
borderColor - new value of the fill attribute
setDecorate
public void setDecorate(int decoration)
throws MagickException Set the decorate attribute in the DrawInfo handle.
setFill
public void setFill(PixelPacket fill)
throws MagickException Set the fill attribute in the DrawInfo handle.
fill - new value of the fill attribute
setFont
public void setFont(String font)
throws MagickException Set the font field in the DrawInfo.
font - value of the font field
setGeometry
public void setGeometry(String geometry)
throws MagickException Set the geometry field in the DrawInfo.
geometry - value of the geometry field
setGravity
public void setGravity(int gravity)
throws MagickException Set the gravity attribute in the DrawInfo handle.
gravity - the new GravityType value
setOpacity
public void setOpacity(int gravity)
throws MagickException Set the opacity attribute in the DrawInfo handle.
setPointsize
public void setPointsize(double pointsize)
throws MagickException Set the pointsize attribute in the DrawInfo handle.
pointsize - value of the pointsize attribute
setPrimitive
public void setPrimitive(String primitive)
throws MagickException Set the primitive field in the DrawInfo.
primitive - value of the primitive field
setStroke
public void setStroke(PixelPacket stroke)
throws MagickException Set the stroke attribute in the DrawInfo handle.
stroke - new value of the fill attribute
setStrokeAntialias
public void setStrokeAntialias(boolean strokeAntialias)
throws MagickException Set the stroke_antialias attribute in the DrawInfo handle.
strokeAntialias - whether antialiasing is enable
setStrokeWidth
public void setStrokeWidth(double strokeWidth)
throws MagickException Set the stroke_width attribute in the DrawInfo handle.
strokeWidth - value of the stroke_width attribute
setText
public void setText(String text)
throws MagickException Set the text field in the DrawInfo.
text - value of the text field
setTextAntialias
public void setTextAntialias(boolean textAntialias)
throws MagickException Set the text_antialias attribute in the DrawInfo handle.
textAntialias - whether antialiasing is enable
setTile
public void setTile(MagickImage image)
throws MagickException Set the tile image in the DrawInfo.
image - the tile image to set
setUnderColor
public void setUnderColor(PixelPacket underColor)
throws MagickException Set the undercolor attribute in the DrawInfo handle.
underColor - new value of the fill attribute