Package magick
Class ImageInfo
java.lang.Object
magick.Magick
magick.ImageInfo
Corresponds to the ImageMagick ImageInfo structure.
- Author:
- Eric Yeo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finalize()
To release memory on cleanup.int
boolean
Get the affirm attribute.int
Get the current border colour..int
int
int
getDepth()
Return the depth of the image.int
Return the file name attribute of the handle.getFont()
int
Return the magick attribute of the handle.int
getPage()
boolean
getPing()
Get the ping attribute.int
int
Get the preview_type attribute.int
getSize()
int
int
getTile()
int
getUnits()
Get the units attribute of the ImageInfo.int
Get the verbose attribute.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
void
setImageOption
(String option, String value) Associates a value with an image option.void
setInterlace
(int value) void
Set the magick attribute of the handle.void
setMonochrome
(int value) void
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
void
setSubimage
(int value) void
setSubrange
(int value) void
setTexture
(String texture) void
void
setUnits
(int resolutionType) Set the units attribute of the ImageInfo.void
setVerbose
(int value) Set the verbose attribute.void
Methods inherited from class magick.Magick
parseImageGeometry
-
Constructor Details
-
ImageInfo
Constructor.- Throws:
MagickException
-
ImageInfo
Constructor.- Parameters:
fileName
- initial value of the file_name attribute- Throws:
MagickException
-
-
Method Details
-
finalize
protected void finalize()To release memory on cleanup. -
init
Initialises the internal native handle.- Throws:
MagickException
-
setFileName
Set the file name attribute of the handle.- Parameters:
fileName
- the new file name- Throws:
MagickException
-
setImageOption
Associates a value with an image option. Example: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.- Parameters:
option
- the image optionvalue
- the image option value- Throws:
MagickException
- Since:
- JMagick 6.4.3 (2008-08-05)
-
getFileName
Return the file name attribute of the handle.- Throws:
MagickException
-
setAffirm
Set the affirm attribute.- Parameters:
affirm
- new value of affirm- Throws:
MagickException
-
getAffirm
Get the affirm attribute.- Throws:
MagickException
-
setSubimage
- Throws:
MagickException
-
getSubimage
- Throws:
MagickException
-
setSubrange
- Throws:
MagickException
-
getSubrange
- Throws:
MagickException
-
setServerName
- Throws:
MagickException
-
getServerName
- Throws:
MagickException
-
setFont
- Throws:
MagickException
-
getFont
- Throws:
MagickException
-
setSize
- Throws:
MagickException
-
getSize
- Throws:
MagickException
-
setTile
- Throws:
MagickException
-
getTile
- Throws:
MagickException
-
setDensity
- Throws:
MagickException
-
getDensity
- Throws:
MagickException
-
setPage
- Throws:
MagickException
-
getPage
- Throws:
MagickException
-
setTexture
- Throws:
MagickException
-
getTexture
- Throws:
MagickException
-
setView
- Throws:
MagickException
-
getView
- Throws:
MagickException
-
setAdjoin
- Throws:
MagickException
-
getAdjoin
- Throws:
MagickException
-
setColorspace
- Throws:
MagickException
-
getColorspace
- Throws:
MagickException
-
setCompression
- Throws:
MagickException
-
getCompression
- Throws:
MagickException
-
setDither
- Throws:
MagickException
-
getDither
- Throws:
MagickException
-
setAntialias
- Throws:
MagickException
-
getAntialias
- Throws:
MagickException
-
setInterlace
- Throws:
MagickException
-
getInterlace
- Throws:
MagickException
-
setMonochrome
- Throws:
MagickException
-
getMonochrome
- Throws:
MagickException
-
setPointSize
- Throws:
MagickException
-
getPointSize
- Throws:
MagickException
-
setQuality
- Throws:
MagickException
-
getQuality
- Throws:
MagickException
-
setVerbose
Set the verbose attribute. This makes writeImage print out information about the written image on standard output, like: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.
- Throws:
MagickException
- See Also:
-
getVerbose
Get the verbose attribute. @see #setVerbose(int)- Throws:
MagickException
-
setPreviewType
Set the preview_type attribute.- Parameters:
value
- new value of the preview_type attribute- Throws:
MagickException
-
getPreviewType
Get the preview_type attribute.- Throws:
MagickException
-
setPing
Set the ping attribute. Used to get information about an image without having to read the image into memory. Afterwards you can use readImage to get the width, height, file size in bytes, and the file format of the image, without loading the pixels.- Parameters:
value
- new value of the ping attribute- Throws:
MagickException
-
getPing
Get the ping attribute. @see #setPing(boolean)- Throws:
MagickException
-
setMagick
Set the magick attribute of the handle. author: Abdulbaset Gaddah invalid input: '<'agaddah@yahoo.com>- Throws:
MagickException
-
getMagick
Return the magick attribute of the handle.- Throws:
MagickException
-
setUnits
Set the units attribute of the ImageInfo.- Parameters:
resolutionType
- the resolution type as defined in ResolutionType- Throws:
MagickException
- on error- See Also:
-
getUnits
Get the units attribute of the ImageInfo.- Returns:
- A integer representing the resolution type as defined in ResolutionType
- Throws:
MagickException
- on error- See Also:
-
setBorderColor
Set the border colour..- Parameters:
color
- the border colour- Throws:
MagickException
- on error- See Also:
-
getBorderColor
Get the current border colour..- Returns:
- the current border colour
- Throws:
MagickException
- on error- See Also:
-
getDepth
Return the depth of the image.- Returns:
- the depth of the image.
- Throws:
MagickException
- on error
-
setDepth
Set the depth of the image.- Parameters:
depth
- the depth of the image- Throws:
MagickException
- on error
-