com.aspose.imaging.createoptions
Class ImageCreateOptions

java.lang.Object
  extended by com.aspose.imaging.CreateOptionsBase
      extended by com.aspose.imaging.createoptions.ImageCreateOptions
Direct Known Subclasses:
BmpCreateOptions, GifCreateOptions, JpegCreateOptions, PngCreateOptions, PsdCreateOptions, TiffCreateOptions

public abstract class ImageCreateOptions
extends CreateOptionsBase

The image create options.


Constructor Summary
protected ImageCreateOptions()
           Initializes a new instance of the ImageCreateOptions class.
protected ImageCreateOptions(ImageCreateOptions imageCreateOptions)
           Initializes a new instance of the ImageCreateOptions class.
 
Method Summary
 int getHeight()
           Gets the image height.
 IColorPalette getPalette()
           Gets the color palette.
 boolean getUseCompactPalette()
           Gets a value indicating whether compact palette is used.
 int getWidth()
           Gets the image width.
 void setHeight(int value)
           Sets the image height.
 void setPalette(IColorPalette value)
           Sets the color palette.
 void setUseCompactPalette(boolean value)
           Sets a value indicating whether compact palette is used.
 void setWidth(int value)
           Sets the image width.
 
Methods inherited from class com.aspose.imaging.CreateOptionsBase
getSource, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCreateOptions

protected ImageCreateOptions()

Initializes a new instance of the ImageCreateOptions class.


ImageCreateOptions

protected ImageCreateOptions(ImageCreateOptions imageCreateOptions)

Initializes a new instance of the ImageCreateOptions class.

Parameters:
imageCreateOptions - The image create options.
Method Detail

getHeight

public int getHeight()

Gets the image height.

Value: The image height.


getPalette

public IColorPalette getPalette()

Gets the color palette.

Value: The color palette.


getUseCompactPalette

public boolean getUseCompactPalette()

Gets a value indicating whether compact palette is used.

Value: true if compact palette is used; otherwise, false.


Compact palette means that image will contain only the specified palette entries if possible or in other words the image will be more compact and occupy less space; otherwise there will be 2^BitsPerPixel entries and image will reserve more space for all possible palette entries. Setting this value to true and changing palette entries may cause performance penalty since data movement may occur so use it carefully.


getWidth

public int getWidth()

Gets the image width.

Value: The image width.


setHeight

public void setHeight(int value)

Sets the image height.

Value: The image height.


setPalette

public void setPalette(IColorPalette value)

Sets the color palette.

Value: The color palette.


setUseCompactPalette

public void setUseCompactPalette(boolean value)

Sets a value indicating whether compact palette is used.

Value: true if compact palette is used; otherwise, false.


Compact palette means that image will contain only the specified palette entries if possible or in other words the image will be more compact and occupy less space; otherwise there will be 2^BitsPerPixel entries and image will reserve more space for all possible palette entries. Setting this value to true and changing palette entries may cause performance penalty since data movement may occur so use it carefully.


setWidth

public void setWidth(int value)

Sets the image width.

Value: The image width.