public class ImageInfo extends Magick
| Constructor and Description |
|---|
ImageInfo()
Constructor.
|
ImageInfo(java.lang.String fileName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
To release memory on cleanup.
|
int |
getAdjoin()
Get the adjoin attribute.
|
boolean |
getAffirm()
Get the affirm attribute.
|
int |
getAntialias()
Get the antialias attribute.
|
PixelPacket |
getBorderColor()
Get the current border colour..
|
int |
getColorspace()
Get the colorspace attribute.
|
int |
getCompression()
Get the compression attribute.
|
java.lang.String |
getDensity()
Get the density attribute.
|
int |
getDepth()
Return the depth of the image.
|
int |
getDither()
Get the dither attribute.
|
java.lang.String |
getFileName()
Return the file name attribute of the handle.
|
java.lang.String |
getFont()
Get the font attribute.
|
double |
getFuzz()
Get the fuzz attribute.
|
int |
getInterlace()
Get the interlace attribute.
|
java.lang.String |
getMagick()
Return the magick attribute of the handle.
|
int |
getMonochrome()
Get the monochrone attribute.
|
java.lang.String |
getPage()
Get the page attribute.
|
boolean |
getPing()
Get the ping attribute.
|
int |
getPointSize()
Get the pointsize attribute.
|
int |
getPreviewType()
Get the preview_type attribute.
|
int |
getQuality()
Get the quality attribute.
|
java.lang.String |
getServerName()
Get the server_name attribute.
|
java.lang.String |
getSize()
Get the size attribute.
|
int |
getSubimage()
Get the subimage attribute.
|
int |
getSubrange()
Get the subrange attribute.
|
java.lang.String |
getTexture()
Get the texture attribute.
|
java.lang.String |
getTile()
Get the tile attribute.
|
int |
getUnits()
Get the units attribute of the ImageInfo.
|
int |
getVerbose()
Get the verbose attribute.
|
java.lang.String |
getView()
Get the view attribute.
|
void |
init()
Initialises the internal native handle.
|
void |
setAdjoin(int value)
Set the adjoin attribute.
|
void |
setAffirm(boolean affirm)
Set the affirm attribute.
|
void |
setAntialias(int value)
Set the antialias attribute.
|
void |
setBorderColor(PixelPacket color)
Set the border colour..
|
void |
setColorspace(int value)
Set the colorspace attribute.
|
void |
setCompression(int value)
Set the compression attribute.
|
void |
setDensity(java.lang.String density)
Set the density attribute.
|
void |
setDepth(int depth)
Set the depth of the image.
|
void |
setDither(int value)
Set the dither attribute.
|
void |
setFileName(java.lang.String fileName)
Set the file name attribute of the handle.
|
void |
setFont(java.lang.String font)
Set the font attribute.
|
void |
setFuzz(double value)
Set the fuzz attribute.
|
void |
setImageOption(java.lang.String option,
java.lang.String value)
Associates a value with an image option.
|
void |
setInterlace(int value)
Set the interlace attribute.
|
void |
setMagick(java.lang.String magick)
Set the magick attribute of the handle.
|
void |
setMonochrome(int value)
Set the monochrome attribute.
|
void |
setPage(java.lang.String page)
Set the page attribute.
|
void |
setPing(boolean value)
Set the ping attribute.
|
void |
setPointSize(int value)
Set the pointsize attribute.
|
void |
setPreviewType(int value)
Set the preview_type attribute.
|
void |
setQuality(int value)
Set the quality attribute.
|
void |
setServerName(java.lang.String name)
Set the server_name attribute.
|
void |
setSize(java.lang.String size)
Set the size attribute.
|
void |
setSubimage(int value)
Set the subimage attribute.
|
void |
setSubrange(int value)
Set the subrange attribute.
|
void |
setTexture(java.lang.String texture)
Set the texture attribute.
|
void |
setTile(java.lang.String tile)
Set the tile attribute.
|
void |
setUnits(int resolutionType)
Set the units attribute of the ImageInfo.
|
void |
setVerbose(int value)
Set the verbose attribute.
|
void |
setView(java.lang.String view)
Set the view attribute.
|
java.lang.String |
toString() |
parseImageGeometry, queryFontspublic ImageInfo()
throws MagickException
MagickException - if an error occurspublic ImageInfo(java.lang.String fileName)
throws MagickException
fileName - initial value of the file_name attributeMagickException - if an error occursprotected void finalize()
finalize in class java.lang.Objectpublic void init()
throws MagickException
MagickException - if an error occurspublic void setFileName(java.lang.String fileName)
throws MagickException
fileName - the new file nameMagickException - if an error occurspublic void setImageOption(java.lang.String option,
java.lang.String value)
throws MagickException
ImageInfo info = new ImageInfo(...)
info.setImageOption("quantum:polarity", "min-is-white");
This then ensures that our tiffs come out in a way that works with
Microsofts Tiff Viewer.option - the image optionvalue - the image option valueMagickException - if an error occurspublic java.lang.String getFileName()
throws MagickException
MagickException - if an error occurspublic void setAffirm(boolean affirm)
throws MagickException
affirm - new value of affirmMagickException - if an error occurspublic boolean getAffirm()
throws MagickException
MagickException - if an error occurspublic void setSubimage(int value)
throws MagickException
value - new value of subimageMagickException - if an error occurspublic int getSubimage()
throws MagickException
MagickException - if an error occurspublic void setSubrange(int value)
throws MagickException
value - the new value of subrangeMagickException - if an error occurspublic int getSubrange()
throws MagickException
MagickException - if an error occurspublic void setServerName(java.lang.String name)
throws MagickException
name - the new value of server_nameMagickException - if an error occurspublic java.lang.String getServerName()
throws MagickException
MagickException - if an error occurspublic void setFont(java.lang.String font)
throws MagickException
font - the new value of fontMagickException - if an error occurspublic java.lang.String getFont()
throws MagickException
MagickException - if an error occurspublic void setSize(java.lang.String size)
throws MagickException
size - the new value of sizeMagickException - if an error occurspublic java.lang.String getSize()
throws MagickException
MagickException - if an error occurspublic void setTile(java.lang.String tile)
throws MagickException
tile - the new value of tileMagickException - if an error occurspublic java.lang.String getTile()
throws MagickException
MagickException - if an error occurspublic void setDensity(java.lang.String density)
throws MagickException
density - the new value of densityMagickException - if an error occurspublic java.lang.String getDensity()
throws MagickException
MagickException - if an error occurspublic void setPage(java.lang.String page)
throws MagickException
page - the new value of pageMagickException - if an error occurspublic java.lang.String getPage()
throws MagickException
MagickException - if an error occurspublic void setTexture(java.lang.String texture)
throws MagickException
texture - the new value of textureMagickException - if an error occurspublic java.lang.String getTexture()
throws MagickException
MagickException - if an error occurspublic void setView(java.lang.String view)
throws MagickException
view - the new value of viewMagickException - if an error occurspublic java.lang.String getView()
throws MagickException
MagickException - if an error occurspublic void setAdjoin(int value)
throws MagickException
value - the new value of adjoinMagickException - if an error occurspublic int getAdjoin()
throws MagickException
MagickException - if an error occurspublic void setColorspace(int value)
throws MagickException
value - the new value of colorspaceMagickException - if an error occurspublic int getColorspace()
throws MagickException
MagickException - if an error occurspublic void setCompression(int value)
throws MagickException
value - the new value of compressionMagickException - if an error occurspublic int getCompression()
throws MagickException
MagickException - if an error occurspublic void setDither(int value)
throws MagickException
value - the new value of ditherMagickException - if an error occurspublic int getDither()
throws MagickException
MagickException - if an error occurspublic void setAntialias(int value)
throws MagickException
value - the new value of antialiasMagickException - if an error occurspublic int getAntialias()
throws MagickException
MagickException - if an error occurspublic void setInterlace(int value)
throws MagickException
value - the new value of interlaceMagickException - if an error occurspublic int getInterlace()
throws MagickException
MagickException - if an error occurspublic void setMonochrome(int value)
throws MagickException
value - the new value of monochromeMagickException - if an error occurspublic int getMonochrome()
throws MagickException
MagickException - if an error occurspublic void setFuzz(double value)
throws MagickException
value - the new value of fuzzMagickException - if an error occurspublic double getFuzz()
throws MagickException
MagickException - if an error occurspublic void setPointSize(int value)
throws MagickException
value - the new value of pointsizeMagickException - if an error occurspublic int getPointSize()
throws MagickException
MagickException - if an error occurspublic void setQuality(int value)
throws MagickException
value - the new value of qualityMagickException - if an error occurspublic int getQuality()
throws MagickException
MagickException - if an error occurspublic void setVerbose(int value)
throws MagickException
TIFF Directory at offset 0x0
Image Width: 102 Image Length: 68
Resolution: 72, 72 pixels/inch
Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: RGB color
FillOrder: msb-to-lsb
Document Name: "test/output/black_and_White_In_RGBRGB.tif"
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 3
Rows/Strip: 26
Planar Configuration: single image plane
ICC Profile: , 560 bytes
Software: ImageMagick 6.2.6 10/06/06 Q8 http://www.imagemagick.org
Note: The verbose setting is primarily for use with the utility programs. it is equivalent to the -verbose option for ImageMagick command line tool. The delegates subsystem does observe verbose, which is why setting verbose to true causes some output when loading a PDF or PS file.
value - the new verbosity valueMagickException - if an error occursMagickImage.writeImage(ImageInfo)public int getVerbose()
throws MagickException
MagickException - if an error occurssetVerbose(int)public void setPreviewType(int value)
throws MagickException
value - new value of the preview_type attributeMagickException - if an error occurspublic int getPreviewType()
throws MagickException
MagickException - if an error occurspublic void setPing(boolean value)
throws MagickException
value - new value of the ping attributeMagickException - if an error occurspublic boolean getPing()
throws MagickException
MagickException - if an error occurssetPing(boolean)public void setMagick(java.lang.String magick)
throws MagickException
magick - new value of the magick attributeMagickException - if an error occurspublic java.lang.String getMagick()
throws MagickException
MagickException - if an error occurspublic void setUnits(int resolutionType)
throws MagickException
resolutionType - the resolution type as defined in ResolutionTypeMagickException - if an error occursResolutionTypepublic int getUnits()
throws MagickException
MagickException - on errorMagickException - if an error occursResolutionTypepublic void setBorderColor(PixelPacket color) throws MagickException
color - the border colourMagickException - if an error occursMagickImage.borderImage(java.awt.Rectangle)public PixelPacket getBorderColor() throws MagickException
MagickException - if an error occursMagickImage.borderImage(java.awt.Rectangle)public int getDepth()
throws MagickException
MagickException - if an error occurspublic void setDepth(int depth)
throws MagickException
depth - the depth of the imageMagickException - if an error occurspublic java.lang.String toString()
toString in class java.lang.Object