public class ImageInfo extends Magick
| Constructor and Description |
|---|
ImageInfo()
Constructor.
|
ImageInfo(String fileName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize()
To release memory on cleanup.
|
int |
getAdjoin() |
boolean |
getAffirm()
Get the affirm attribute.
|
int |
getAntialias() |
PixelPacket |
getBorderColor()
Get the current border colour..
|
int |
getColorspace() |
int |
getCompression() |
String |
getDensity() |
int |
getDepth()
Return the depth of the image.
|
int |
getDither() |
String |
getFileName()
Return the file name attribute of the handle.
|
String |
getFont() |
int |
getInterlace() |
String |
getMagick()
Return the magick attribute of the handle.
|
int |
getMonochrome() |
String |
getPage() |
boolean |
getPing()
Get the ping attribute.
|
int |
getPointSize() |
int |
getPreviewType()
Get the preview_type attribute.
|
int |
getQuality() |
String |
getServerName() |
String |
getSize() |
int |
getSubimage() |
int |
getSubrange() |
String |
getTexture() |
String |
getTile() |
int |
getUnits()
Get the units attribute of the ImageInfo.
|
int |
getVerbose()
Get the verbose attribute.
|
String |
getView() |
void |
init()
Initialises the internal native handle.
|
void |
setAdjoin(int value) |
void |
setAffirm(boolean affirm)
Set the affirm attribute.
|
void |
setAntialias(int value) |
void |
setBorderColor(PixelPacket color)
Set the border colour..
|
void |
setColorspace(int value) |
void |
setCompression(int value) |
void |
setDensity(String density) |
void |
setDepth(int depth)
Set the depth of the image.
|
void |
setDither(int value) |
void |
setFileName(String fileName)
Set the file name attribute of the handle.
|
void |
setFont(String font) |
void |
setImageOption(String option,
String value)
Associates a value with an image option.
|
void |
setInterlace(int value) |
void |
setMagick(String magick)
Set the magick attribute of the handle.
|
void |
setMonochrome(int value) |
void |
setPage(String page) |
void |
setPing(boolean value)
Set the ping attribute.
|
void |
setPointSize(int value) |
void |
setPreviewType(int value)
Set the preview_type attribute.
|
void |
setQuality(int value) |
void |
setServerName(String name) |
void |
setSize(String size) |
void |
setSubimage(int value) |
void |
setSubrange(int value) |
void |
setTexture(String texture) |
void |
setTile(String tile) |
void |
setUnits(int resolutionType)
Set the units attribute of the ImageInfo.
|
void |
setVerbose(int value)
Set the verbose attribute.
|
void |
setView(String view) |
parseImageGeometrypublic ImageInfo()
throws MagickException
MagickExceptionpublic ImageInfo(String fileName) throws MagickException
fileName - initial value of the file_name attributeMagickExceptionprotected void finalize()
public void init()
throws MagickException
MagickExceptionpublic void setFileName(String fileName) throws MagickException
fileName - the new file nameMagickExceptionpublic void setImageOption(String option, 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 valueMagickExceptionpublic String getFileName() throws MagickException
MagickExceptionpublic void setAffirm(boolean affirm)
throws MagickException
affirm - new value of affirmMagickExceptionpublic boolean getAffirm()
throws MagickException
MagickExceptionpublic void setSubimage(int value)
throws MagickException
MagickExceptionpublic int getSubimage()
throws MagickException
MagickExceptionpublic void setSubrange(int value)
throws MagickException
MagickExceptionpublic int getSubrange()
throws MagickException
MagickExceptionpublic void setServerName(String name) throws MagickException
MagickExceptionpublic String getServerName() throws MagickException
MagickExceptionpublic void setFont(String font) throws MagickException
MagickExceptionpublic String getFont() throws MagickException
MagickExceptionpublic void setSize(String size) throws MagickException
MagickExceptionpublic String getSize() throws MagickException
MagickExceptionpublic void setTile(String tile) throws MagickException
MagickExceptionpublic String getTile() throws MagickException
MagickExceptionpublic void setDensity(String density) throws MagickException
MagickExceptionpublic String getDensity() throws MagickException
MagickExceptionpublic void setPage(String page) throws MagickException
MagickExceptionpublic String getPage() throws MagickException
MagickExceptionpublic void setTexture(String texture) throws MagickException
MagickExceptionpublic String getTexture() throws MagickException
MagickExceptionpublic void setView(String view) throws MagickException
MagickExceptionpublic String getView() throws MagickException
MagickExceptionpublic void setAdjoin(int value)
throws MagickException
MagickExceptionpublic int getAdjoin()
throws MagickException
MagickExceptionpublic void setColorspace(int value)
throws MagickException
MagickExceptionpublic int getColorspace()
throws MagickException
MagickExceptionpublic void setCompression(int value)
throws MagickException
MagickExceptionpublic int getCompression()
throws MagickException
MagickExceptionpublic void setDither(int value)
throws MagickException
MagickExceptionpublic int getDither()
throws MagickException
MagickExceptionpublic void setAntialias(int value)
throws MagickException
MagickExceptionpublic int getAntialias()
throws MagickException
MagickExceptionpublic void setInterlace(int value)
throws MagickException
MagickExceptionpublic int getInterlace()
throws MagickException
MagickExceptionpublic void setMonochrome(int value)
throws MagickException
MagickExceptionpublic int getMonochrome()
throws MagickException
MagickExceptionpublic void setPointSize(int value)
throws MagickException
MagickExceptionpublic int getPointSize()
throws MagickException
MagickExceptionpublic void setQuality(int value)
throws MagickException
MagickExceptionpublic int getQuality()
throws MagickException
MagickExceptionpublic 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.
MagickExceptionMagickImage.writeImage(ImageInfo)public int getVerbose()
throws MagickException
MagickExceptionpublic void setPreviewType(int value)
throws MagickException
value - new value of the preview_type attributeMagickExceptionpublic int getPreviewType()
throws MagickException
MagickExceptionpublic void setPing(boolean value)
throws MagickException
value - new value of the ping attributeMagickExceptionpublic boolean getPing()
throws MagickException
MagickExceptionpublic void setMagick(String magick) throws MagickException
MagickExceptionpublic String getMagick() throws MagickException
MagickExceptionpublic void setUnits(int resolutionType)
throws MagickException
resolutionType - the resolution type as defined in ResolutionTypeMagickException - on errorResolutionTypepublic int getUnits()
throws MagickException
MagickException - on errorResolutionTypepublic void setBorderColor(PixelPacket color) throws MagickException
color - the border colourMagickException - on errorMagickImage.borderImage(java.awt.Rectangle)public PixelPacket getBorderColor() throws MagickException
MagickException - on errorMagickImage.borderImage(java.awt.Rectangle)public int getDepth()
throws MagickException
MagickException - on errorpublic void setDepth(int depth)
throws MagickException
depth - the depth of the imageMagickException - on errorCopyright © 2017. All rights reserved.