Package magick
Class Magick
java.lang.Object
magick.Magick
- Direct Known Subclasses:
DrawInfo
,ImageInfo
,MagickImage
,MagickInfo
,MagickProducer
,PixelPacket
,QuantizeInfo
,TypeMetric
The sole purpose of this class is to cause the native
library to be loaded whenever a concrete class is used
and provide utility methods.
- Author:
- Eric Yeo, Max Kollegov <virtual_max@geocities.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
parseImageGeometry
(String geometry, Rectangle rect) Parses a geometry specification and returns the width, height, x, and y values in the rectangle.static String[]
queryFonts
(String pattern) Gets an array of the names of the fonts that ImageMagick has that match the pattern
-
Constructor Details
-
Magick
public Magick()
-
-
Method Details
-
parseImageGeometry
Parses a geometry specification and returns the width, height, x, and y values in the rectangle. It also returns flags that indicates which of the four values (width, height, xoffset, yoffset) were located in the string, and whether the x and y values are negative. In addition, there are flags to report any meta characters (%, !, <, and >).- Parameters:
geometry
- String containing the geometry specificationsrect
- The rectangle of values x, y, width and height- Returns:
- bitmask indicating the values in the geometry string
- See Also:
-
queryFonts
Gets an array of the names of the fonts that ImageMagick has that match the pattern- Parameters:
pattern
- The query pattern- Returns:
- array of font names.
-