CmxRasterImage

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.imaging.fileformats.cmx.objectmodel.specs.ICmxObjectSpec

public class CmxRasterImage implements ICmxObjectSpec

Represents the data specified for raster images.

Constructors

ConstructorDescription
CmxRasterImage()

Methods

MethodDescription
getType()Gets the type of the image.
setType(int value)Sets the type of the image.
getCompression()Gets the compression.
setCompression(int value)Sets the compression.
getSize()Gets the size of the image.
setSize(long value)Sets the size of the image.
getCompressedSize()Gets the compressed size of the image.
setCompressedSize(long value)Sets the compressed size of the image.
isMask()Gets a value indicating whether this instance is mask.
setMask(boolean value)Sets a value indicating whether this instance is mask.
getColorModel()Gets the color model.
setColorModel(long value)Sets the color model.
getWidth()Gets the width of the image.
setWidth(long value)Sets the width of the image.
getHeight()Gets the height of the image.
setHeight(long value)Sets the height of the image.
getBitsPerPixel()Gets the bits per pixel.
setBitsPerPixel(long value)Sets the bits per pixel.
getBytesPerLine()Gets the size of the line.
setBytesPerLine(long value)Sets the size of the line.
getColorPalette()Gets the color palette array.
setColorPalette(int[] value)Sets the color palette array.
getRawData()Gets the raw byte data of the image.
setRawData(byte[] value)Sets the raw byte data of the image.
toString()Returns a String that represents this instance.
equals(Object o)Check if objects are equal.
hashCode()Get hash code of the current object.

CmxRasterImage()

public CmxRasterImage()

getType()

public final int getType()

Gets the type of the image.

Returns: int - the type of the image.

setType(int value)

public final void setType(int value)

Sets the type of the image.

Parameters:

ParameterTypeDescription
valueintthe type of the image.

getCompression()

public final int getCompression()

Gets the compression.

Returns: int - the compression.

setCompression(int value)

public final void setCompression(int value)

Sets the compression.

Parameters:

ParameterTypeDescription
valueintthe compression.

getSize()

public final long getSize()

Gets the size of the image. Measures in bytes.

Returns: long - the size of the image.

setSize(long value)

public final void setSize(long value)

Sets the size of the image. Measures in bytes.

Parameters:

ParameterTypeDescription
valuelongthe size of the image.

getCompressedSize()

public final long getCompressedSize()

Gets the compressed size of the image. Measures in bytes.

Returns: long - the compressed size of the image.

setCompressedSize(long value)

public final void setCompressedSize(long value)

Sets the compressed size of the image. Measures in bytes.

Parameters:

ParameterTypeDescription
valuelongthe compressed size of the image.

isMask()

public final boolean isMask()

Gets a value indicating whether this instance is mask.

Returns: boolean - a value indicating whether this instance is mask.

setMask(boolean value)

public final void setMask(boolean value)

Sets a value indicating whether this instance is mask.

Parameters:

ParameterTypeDescription
valuebooleana value indicating whether this instance is mask.

getColorModel()

public final long getColorModel()

Gets the color model.

Returns: long - the color model.

setColorModel(long value)

public final void setColorModel(long value)

Sets the color model.

Parameters:

ParameterTypeDescription
valuelongthe color model.

getWidth()

public final long getWidth()

Gets the width of the image. Measures in pixels.

Returns: long - the width of the image.

setWidth(long value)

public final void setWidth(long value)

Sets the width of the image. Measures in pixels.

Parameters:

ParameterTypeDescription
valuelongthe width of the image.

getHeight()

public final long getHeight()

Gets the height of the image. Measures in pixels.

Returns: long - the height of the image.

setHeight(long value)

public final void setHeight(long value)

Sets the height of the image. Measures in pixels.

Parameters:

ParameterTypeDescription
valuelongthe height of the image.

getBitsPerPixel()

public final long getBitsPerPixel()

Gets the bits per pixel.

Returns: long - the bits per pixel.

setBitsPerPixel(long value)

public final void setBitsPerPixel(long value)

Sets the bits per pixel.

Parameters:

ParameterTypeDescription
valuelongthe bits per pixel.

getBytesPerLine()

public final long getBytesPerLine()

Gets the size of the line. Measures in bytes.

Returns: long - the size of the line.

setBytesPerLine(long value)

public final void setBytesPerLine(long value)

Sets the size of the line. Measures in bytes.

Parameters:

ParameterTypeDescription
valuelongthe size of the line.

getColorPalette()

public final int[] getColorPalette()

Gets the color palette array. Elements is ARGB color values represents in int

Returns: int[] - the color palette array.

setColorPalette(int[] value)

public final void setColorPalette(int[] value)

Sets the color palette array. Elements is ARGB color values represents in int

Parameters:

ParameterTypeDescription
valueint[]the color palette array.

getRawData()

public final byte[] getRawData()

Gets the raw byte data of the image.

Returns: byte[] - the raw byte data of the image.

setRawData(byte[] value)

public final void setRawData(byte[] value)

Sets the raw byte data of the image.

Parameters:

ParameterTypeDescription
valuebyte[]the raw byte data of the image.

toString()

public String toString()

Returns a String that represents this instance.

Returns: java.lang.String - A String that represents this instance.

equals(Object o)

public boolean equals(Object o)

Check if objects are equal.

Parameters:

ParameterTypeDescription
ojava.lang.ObjectThe other object.

Returns: boolean - The equality comparison result.

hashCode()

public int hashCode()

Get hash code of the current object.

Returns: int - The hash code.