magick

Class ImageInfo


public class ImageInfo
extends Magick

Corresponds to the ImageMagick ImageInfo structure.
Author:
Eric Yeo

Constructor Summary

ImageInfo()
Constructor.
ImageInfo(String fileName)
Constructor.

Method Summary

protected void
finalize()
To release memory on cleanup.
int
getAdjoin()
boolean
getAffirm()
Get the affirm attribute.
PixelPacket
getBorderColor()
Get the current border colour..
int
getColorspace()
int
getCompression()
String
getDensity()
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()
String
getView()
void
init()
Initialises the internal native handle.
void
setAdjoin(int value)
void
setAffirm(boolean affirm)
Set the affirm attribute.
void
setBorderColor(PixelPacket color)
Set the border colour..
void
setColorspace(int value)
void
setCompression(int value)
void
setDensity(String density)
void
setDither(int value)
void
setFileName(String fileName)
Set the file name attribute of the handle.
void
setFont(String font)
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)
void
setView(String view)

Methods inherited from class magick.Magick

parseImageGeometry

Constructor Details

ImageInfo

public ImageInfo()
            throws MagickException
Constructor.

ImageInfo

public ImageInfo(String fileName)
            throws MagickException
Constructor.
Parameters:
fileName - initial value of the file_name attribute

Method Details

finalize

protected void finalize()
To release memory on cleanup.

getAdjoin

public int getAdjoin()
            throws MagickException

getAffirm

public boolean getAffirm()
            throws MagickException
Get the affirm attribute.

getBorderColor

public PixelPacket getBorderColor()
            throws MagickException
Get the current border colour..
Returns:
the current border colour
Throws:
MagickException - on error

getColorspace

public int getColorspace()
            throws MagickException

getCompression

public int getCompression()
            throws MagickException

getDensity

public String getDensity()
            throws MagickException

getDither

public int getDither()
            throws MagickException

getFileName

public String getFileName()
            throws MagickException
Return the file name attribute of the handle.

getFont

public String getFont()
            throws MagickException

getInterlace

public int getInterlace()
            throws MagickException

getMagick

public String getMagick()
            throws MagickException
Return the magick attribute of the handle.
Author:
Abdulbaset Gaddah

getMonochrome

public int getMonochrome()
            throws MagickException

getPage

public String getPage()
            throws MagickException

getPing

public boolean getPing()
            throws MagickException
Get the ping attribute.

getPointSize

public int getPointSize()
            throws MagickException

getPreviewType

public int getPreviewType()
            throws MagickException
Get the preview_type attribute.

getQuality

public int getQuality()
            throws MagickException

getServerName

public String getServerName()
            throws MagickException

getSize

public String getSize()
            throws MagickException

getSubimage

public int getSubimage()
            throws MagickException

getSubrange

public int getSubrange()
            throws MagickException

getTexture

public String getTexture()
            throws MagickException

getTile

public String getTile()
            throws MagickException

getUnits

public int getUnits()
            throws MagickException
Get the units attribute of the ImageInfo.
Returns:
A integer representing the resolution type as defined in ResolutionType
Throws:
MagickException - on error

getVerbose

public int getVerbose()
            throws MagickException

getView

public String getView()
            throws MagickException

init

public void init()
            throws MagickException
Initialises the internal native handle.

setAdjoin

public void setAdjoin(int value)
            throws MagickException

setAffirm

public void setAffirm(boolean affirm)
            throws MagickException
Set the affirm attribute.
Parameters:
affirm - new value of affirm

setBorderColor

public void setBorderColor(PixelPacket color)
            throws MagickException
Set the border colour..
Parameters:
color - the border colour
Throws:
MagickException - on error

setColorspace

public void setColorspace(int value)
            throws MagickException

setCompression

public void setCompression(int value)
            throws MagickException

setDensity

public void setDensity(String density)
            throws MagickException

setDither

public void setDither(int value)
            throws MagickException

setFileName

public void setFileName(String fileName)
            throws MagickException
Set the file name attribute of the handle.
Parameters:
fileName - the new file name

setFont

public void setFont(String font)
            throws MagickException

setInterlace

public void setInterlace(int value)
            throws MagickException

setMagick

public void setMagick(String magick)
            throws MagickException
Set the magick attribute of the handle.
Author:
Abdulbaset Gaddah

setMonochrome

public void setMonochrome(int value)
            throws MagickException

setPage

public void setPage(String page)
            throws MagickException

setPing

public void setPing(boolean value)
            throws MagickException
Set the ping attribute.
Parameters:
value - new value of the ping attribute

setPointSize

public void setPointSize(int value)
            throws MagickException

setPreviewType

public void setPreviewType(int value)
            throws MagickException
Set the preview_type attribute.
Parameters:
value - new value of the preview_type attribute

setQuality

public void setQuality(int value)
            throws MagickException

setServerName

public void setServerName(String name)
            throws MagickException

setSize

public void setSize(String size)
            throws MagickException

setSubimage

public void setSubimage(int value)
            throws MagickException

setSubrange

public void setSubrange(int value)
            throws MagickException

setTexture

public void setTexture(String texture)
            throws MagickException

setTile

public void setTile(String tile)
            throws MagickException

setUnits

public void setUnits(int resolutionType)
            throws MagickException
Set the units attribute of the ImageInfo.
Parameters:
Throws:
MagickException - on error

setVerbose

public void setVerbose(int value)
            throws MagickException

setView

public void setView(String view)
            throws MagickException