Jpeg2000Options

Inheritance: java.lang.Object, com.aspose.psd.DisposableObject, com.aspose.psd.ImageOptionsBase

public class Jpeg2000Options extends ImageOptionsBase

The Jpeg2000 file format options.

Constructors

ConstructorDescription
Jpeg2000Options()Initializes a new instance of the Jpeg2000Options class.
Jpeg2000Options(Jpeg2000Options jpeg2000Options)Initializes a new instance of the Jpeg2000Options class.

Methods

MethodDescription
clone()
close()Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7.
deepClone()Clones this instance.
deepClone_internalized()Clones this instance.
dispose()Disposes the current instance.
equals(Object arg0)
getBufferSizeHint()Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.
getClass()
getCodec()Gets or sets the JPEG2000 codec
getComments()Gets or sets the Jpeg comment markers.
getCompressionRatios()Gets or sets the Array of compression ratio.
getDefaultReplacementFont()Gets or sets the default replacement font (font that will be used to draw text when exporting to raster, if existing layer font in PSD file is not presented in system).
getDisposed()Gets a value indicating whether this instance is disposed.
getFullFrame()Gets a value indicating whether [full frame].
getIrreversible()Gets a value indicating whether use the irreversible DWT 9-7 (true) or use lossless DWT 5-3 compression (default).
getMultiPageOptions()The multipage options
getPalette()Gets or sets the color palette.
getProgressEventHandler()Gets or sets the progress event handler.
getResolutionSettings()Gets or sets the resolution settings.
getSource()Gets or sets the source to create image in.
getVectorRasterizationOptions()Gets or sets the vector rasterization options.
getXmpData()Gets or sets the XMP metadata container.
hashCode()
notify()
notifyAll()
setBufferSizeHint(int value)Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.
setCodec(int value)Gets or sets the JPEG2000 codec
setComments(String[] value)Gets or sets the Jpeg comment markers.
setCompressionRatios(int[] value)Gets or sets the Array of compression ratio.
setDefaultReplacementFont(String value)Gets or sets the default replacement font (font that will be used to draw text when exporting to raster, if existing layer font in PSD file is not presented in system).
setFullFrame(boolean value)Sets a value indicating whether [full frame].
setIgnoreAfterCreate_internalized(boolean value)Gets or sets a value indicating whether ignore after create event.
setIrreversible(boolean value)Sets a value indicating whether use the irreversible DWT 9-7 (true) or use lossless DWT 5-3 compression (default).
setMultiPageOptions(MultiPageOptions value)The multipage options
setPalette(IColorPalette value)Gets or sets the color palette.
setProgressEventHandler(ProgressEventHandler value)Gets or sets the progress event handler.
setResolutionSettings(ResolutionSetting value)Gets or sets the resolution settings.
setSource(Source value)Gets or sets the source to create image in.
setVectorRasterizationOptions(VectorRasterizationOptions value)Gets or sets the vector rasterization options.
setXmpData(XmpPacketWrapper value)Gets or sets the XMP metadata container.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Jpeg2000Options()

public Jpeg2000Options()

Initializes a new instance of the Jpeg2000Options class.

Jpeg2000Options(Jpeg2000Options jpeg2000Options)

public Jpeg2000Options(Jpeg2000Options jpeg2000Options)

Initializes a new instance of the Jpeg2000Options class.

Parameters:

ParameterTypeDescription
jpeg2000OptionsJpeg2000OptionsThe Jpeg2000 file format options to copy settings from.

clone()

public ImageOptionsBase clone()

Returns: ImageOptionsBase

close()

public void close()

Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7. This method simply call dispose method.

deepClone()

public ImageOptionsBase deepClone()

Clones this instance.

Returns: ImageOptionsBase - Returns shallow copy of this instance

deepClone_internalized()

public ImageOptionsBase deepClone_internalized()

Clones this instance.

Returns: ImageOptionsBase - Returns shallow copy of this instance

dispose()

public final void dispose()

Disposes the current instance.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getBufferSizeHint()

public final int getBufferSizeHint()

Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.

Value: The buffer size hint, in megabytes. Non-positive value means no memory limitation for internal buffers

Returns: int

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCodec()

public int getCodec()

Gets or sets the JPEG2000 codec

Returns: int - The JPEG2000 codec

getComments()

public String[] getComments()

Gets or sets the Jpeg comment markers.

Returns: java.lang.String[] - The Jpeg comment markers.

getCompressionRatios()

public int[] getCompressionRatios()

Gets or sets the Array of compression ratio. Different compression ratios for successive layers. The rate specified for each quality level is the desired compression factor. Decreasing ratios required.

Returns: int[] - The compression ratios.

getDefaultReplacementFont()

public String getDefaultReplacementFont()

Gets or sets the default replacement font (font that will be used to draw text when exporting to raster, if existing layer font in PSD file is not presented in system). To take proper name of default font can be used next code snippet: System.Drawing.Text.InstalledFontCollection col = new System.Drawing.Text.InstalledFontCollection(); System.Drawing.FontFamily[] families = col.Families; string defaultFontName = families[0].Name; PsdLoadOptions psdLoadOptions = new PsdLoadOptions() { DefaultReplacementFont = defaultFontName });

Value: The default replacement font.

Returns: java.lang.String

getDisposed()

public final boolean getDisposed()

Gets a value indicating whether this instance is disposed.

Returns: boolean - true if disposed; otherwise, false .

getFullFrame()

public final boolean getFullFrame()

Gets a value indicating whether [full frame].

Value: true if [full frame]; otherwise, false .

Returns: boolean - a value indicating whether [full frame].

getIrreversible()

public boolean getIrreversible()

Gets a value indicating whether use the irreversible DWT 9-7 (true) or use lossless DWT 5-3 compression (default).

Returns: boolean - a value indicating whether use the irreversible DWT 9-7 (true) or use lossless DWT 5-3 compression

getMultiPageOptions()

public final MultiPageOptions getMultiPageOptions()

The multipage options

Returns: MultiPageOptions

getPalette()

public IColorPalette getPalette()

Gets or sets the color palette.

Value: The color palette.

Returns: IColorPalette

getProgressEventHandler()

public final ProgressEventHandler getProgressEventHandler()

Gets or sets the progress event handler.

Value: The progress event handler.

Returns: ProgressEventHandler

getResolutionSettings()

public ResolutionSetting getResolutionSettings()

Gets or sets the resolution settings.

Returns: ResolutionSetting

getSource()

public final Source getSource()

Gets or sets the source to create image in.

Value: The source to create image in.

Returns: Source

getVectorRasterizationOptions()

public final VectorRasterizationOptions getVectorRasterizationOptions()

Gets or sets the vector rasterization options.

Value: The vector rasterization options.

Returns: VectorRasterizationOptions

getXmpData()

public XmpPacketWrapper getXmpData()

Gets or sets the XMP metadata container.

Returns: XmpPacketWrapper - The XMP data container.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setBufferSizeHint(int value)

public final void setBufferSizeHint(int value)

Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.

Value: The buffer size hint, in megabytes. Non-positive value means no memory limitation for internal buffers

Parameters:

ParameterTypeDescription
valueint

setCodec(int value)

public void setCodec(int value)

Gets or sets the JPEG2000 codec

Parameters:

ParameterTypeDescription
valueintThe JPEG2000 codec

setComments(String[] value)

public void setComments(String[] value)

Gets or sets the Jpeg comment markers.

Parameters:

ParameterTypeDescription
valuejava.lang.String[]The Jpeg comment markers.

setCompressionRatios(int[] value)

public void setCompressionRatios(int[] value)

Gets or sets the Array of compression ratio. Different compression ratios for successive layers. The rate specified for each quality level is the desired compression factor. Decreasing ratios required.

Parameters:

ParameterTypeDescription
valueint[]The compression ratios.

setDefaultReplacementFont(String value)

public void setDefaultReplacementFont(String value)

Gets or sets the default replacement font (font that will be used to draw text when exporting to raster, if existing layer font in PSD file is not presented in system). To take proper name of default font can be used next code snippet: System.Drawing.Text.InstalledFontCollection col = new System.Drawing.Text.InstalledFontCollection(); System.Drawing.FontFamily[] families = col.Families; string defaultFontName = families[0].Name; PsdLoadOptions psdLoadOptions = new PsdLoadOptions() { DefaultReplacementFont = defaultFontName });

Value: The default replacement font.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setFullFrame(boolean value)

public final void setFullFrame(boolean value)

Sets a value indicating whether [full frame].

Value: true if [full frame]; otherwise, false .

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether [full frame].

setIgnoreAfterCreate_internalized(boolean value)

public final void setIgnoreAfterCreate_internalized(boolean value)

Gets or sets a value indicating whether ignore after create event.

Value: true if ignore after create event; otherwise, false .

Parameters:

ParameterTypeDescription
valueboolean

setIrreversible(boolean value)

public void setIrreversible(boolean value)

Sets a value indicating whether use the irreversible DWT 9-7 (true) or use lossless DWT 5-3 compression (default).

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether use the irreversible DWT 9-7 (true) or use lossless DWT 5-3 compression

setMultiPageOptions(MultiPageOptions value)

public final void setMultiPageOptions(MultiPageOptions value)

The multipage options

Parameters:

ParameterTypeDescription
valueMultiPageOptions

setPalette(IColorPalette value)

public void setPalette(IColorPalette value)

Gets or sets the color palette.

Value: The color palette.

Parameters:

ParameterTypeDescription
valueIColorPalette

setProgressEventHandler(ProgressEventHandler value)

public final void setProgressEventHandler(ProgressEventHandler value)

Gets or sets the progress event handler.

Value: The progress event handler.

Parameters:

ParameterTypeDescription
valueProgressEventHandler

setResolutionSettings(ResolutionSetting value)

public void setResolutionSettings(ResolutionSetting value)

Gets or sets the resolution settings.

Parameters:

ParameterTypeDescription
valueResolutionSetting

setSource(Source value)

public final void setSource(Source value)

Gets or sets the source to create image in.

Value: The source to create image in.

Parameters:

ParameterTypeDescription
valueSource

setVectorRasterizationOptions(VectorRasterizationOptions value)

public final void setVectorRasterizationOptions(VectorRasterizationOptions value)

Gets or sets the vector rasterization options.

Value: The vector rasterization options.

Parameters:

ParameterTypeDescription
valueVectorRasterizationOptions

setXmpData(XmpPacketWrapper value)

public void setXmpData(XmpPacketWrapper value)

Gets or sets the XMP metadata container.

Parameters:

ParameterTypeDescription
valueXmpPacketWrapperThe XMP data container.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int