IcoOptions

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

public class IcoOptions extends ImageOptionsBase

Create custom ICO image files for application icons effortlessly with our API, empowering you to represent your software seamlessly. Our API supports PNG and BMP image frames with various bits per pixel values, ensuring versatility and compatibility for your icon creation needs.

Constructors

ConstructorDescription
IcoOptions()Initializes a new instance of the IcoOptions class with the ICO frame format equals to Png and bitsPerPixel equals to 32.
IcoOptions(IcoOptions options)
IcoOptions(long format)Initializes a new instance of the IcoOptions class with the ICO frame format equals to [format] and bitsPerPixel equals to 32.
IcoOptions(long format, int bitsPerPixel)Initializes a new instance of the IcoOptions class.

Methods

MethodDescription
getFormat()Gets the ICO frame format.
setFormat(long value)Sets the ICO frame format.
getBitsPerPixel()Gets the bits-per-pixel value.
setBitsPerPixel(int value)Sets the bits-per-pixel value.

IcoOptions()

public IcoOptions()

Initializes a new instance of the IcoOptions class with the ICO frame format equals to Png and bitsPerPixel equals to 32.

IcoOptions(IcoOptions options)

public IcoOptions(IcoOptions options)

Parameters:

ParameterTypeDescription
optionsIcoOptions

IcoOptions(long format)

public IcoOptions(long format)

Initializes a new instance of the IcoOptions class with the ICO frame format equals to [format] and bitsPerPixel equals to 32.

Parameters:

ParameterTypeDescription
formatlongThe ICO frame format. Note that ICO image supports only FileFormat.Png and FileFormat.Bmp images as entries.

IcoOptions(long format, int bitsPerPixel)

public IcoOptions(long format, int bitsPerPixel)

Initializes a new instance of the IcoOptions class.

Parameters:

ParameterTypeDescription
formatlongThe ICO frame format. Note that ICO image supports only FileFormat.Png and FileFormat.Bmp images as entries.
bitsPerPixelintThe bits-per-pixel value.

getFormat()

public final long getFormat()

Gets the ICO frame format.

Returns: long - the ICO frame format.

setFormat(long value)

public final void setFormat(long value)

Sets the ICO frame format.

Parameters:

ParameterTypeDescription
valuelongthe ICO frame format.

getBitsPerPixel()

public final int getBitsPerPixel()

Gets the bits-per-pixel value.

Returns: int - the bits-per-pixel value.

setBitsPerPixel(int value)

public final void setBitsPerPixel(int value)

Sets the bits-per-pixel value.

Parameters:

ParameterTypeDescription
valueintthe bits-per-pixel value.