---
title: "CmxImageSpec"
url: "https://reference.aspose.com/imaging/java/com.aspose.imaging.fileformats.cmx.objectmodel.specs/cmximagespec/"
product: "Aspose.Imaging for Java API Reference"
description: "Represents info specified for raster images."
---

**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
[com.aspose.imaging.fileformats.cmx.objectmodel.specs.ICmxObjectSpec](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/icmxobjectspec)
```
public class CmxImageSpec implements ICmxObjectSpec
```

Represents info specified for raster images.
## Constructors

| Constructor | Description |
| --- | --- |
| [CmxImageSpec()](#CmxImageSpec--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getBoundBox()](#getBoundBox--) | Gets the bound box. |
| [setBoundBox(RectangleF value)](#setBoundBox-com.aspose.imaging.RectangleF-) | Sets the bound box. |
| [getCropBox()](#getCropBox--) | Gets the crop box. |
| [setCropBox(RectangleF value)](#setCropBox-com.aspose.imaging.RectangleF-) | Sets the crop box. |
| [getMatrix()](#getMatrix--) | Gets the transformation matrix. |
| [setMatrix(Matrix value)](#setMatrix-com.aspose.imaging.Matrix-) | Sets the transformation matrix. |
| [getImageType()](#getImageType--) | Gets the type of the image. |
| [setImageType(int value)](#setImageType-int-) | Sets the type of the image. |
| [getImages()](#getImages--) | Gets the images. |
| [setImages(CmxRasterImage[] value)](#setImages-com.aspose.imaging.fileformats.cmx.objectmodel.specs.CmxRasterImage---) | Sets the images. |
| [isCmx3Image()](#isCmx3Image--) | Gets a value indicating whether this instance is CMX3 image. |
| [setCmx3Image(boolean value)](#setCmx3Image-boolean-) | Sets a value indicating whether this instance is CMX3 image. |
| [toString()](#toString--) | Returns a String that represents this instance. |
| [toArray()](#toArray--) |  |
| [equals(Object o)](#equals-java.lang.Object-) | Check if objects are equal. |
| [hashCode()](#hashCode--) | Get hash code of the current object. |
### CmxImageSpec() {#CmxImageSpec--}
```
public CmxImageSpec()
```


### getBoundBox() {#getBoundBox--}
```
public final RectangleF getBoundBox()
```


Gets the bound box.

**Returns:**
[RectangleF](../../com.aspose.imaging/rectanglef) - the bound box.
### setBoundBox(RectangleF value) {#setBoundBox-com.aspose.imaging.RectangleF-}
```
public final void setBoundBox(RectangleF value)
```


Sets the bound box.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [RectangleF](../../com.aspose.imaging/rectanglef) | the bound box. |

### getCropBox() {#getCropBox--}
```
public final RectangleF getCropBox()
```


Gets the crop box.

**Returns:**
[RectangleF](../../com.aspose.imaging/rectanglef) - the crop box.
### setCropBox(RectangleF value) {#setCropBox-com.aspose.imaging.RectangleF-}
```
public final void setCropBox(RectangleF value)
```


Sets the crop box.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [RectangleF](../../com.aspose.imaging/rectanglef) | the crop box. |

### getMatrix() {#getMatrix--}
```
public final Matrix getMatrix()
```


Gets the transformation matrix.

**Returns:**
[Matrix](../../com.aspose.imaging/matrix) - the transformation matrix.
### setMatrix(Matrix value) {#setMatrix-com.aspose.imaging.Matrix-}
```
public final void setMatrix(Matrix value)
```


Sets the transformation matrix.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Matrix](../../com.aspose.imaging/matrix) | the transformation matrix. |

### getImageType() {#getImageType--}
```
public final int getImageType()
```


Gets the type of the image.

**Returns:**
int - the type of the image.
### setImageType(int value) {#setImageType-int-}
```
public final void setImageType(int value)
```


Sets the type of the image.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the type of the image. |

### getImages() {#getImages--}
```
public final CmxRasterImage[] getImages()
```


Gets the images.

**Returns:**
com.aspose.imaging.fileformats.cmx.objectmodel.specs.CmxRasterImage[] - the images.
### setImages(CmxRasterImage[] value) {#setImages-com.aspose.imaging.fileformats.cmx.objectmodel.specs.CmxRasterImage---}
```
public final void setImages(CmxRasterImage[] value)
```


Sets the images.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CmxRasterImage\[\]](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/cmxrasterimage) | the images. |

### isCmx3Image() {#isCmx3Image--}
```
public final boolean isCmx3Image()
```


Gets a value indicating whether this instance is CMX3 image.

Value: `true` if this instance is CMX3 image; otherwise, `false`.

**Returns:**
boolean - a value indicating whether this instance is CMX3 image.
### setCmx3Image(boolean value) {#setCmx3Image-boolean-}
```
public final void setCmx3Image(boolean value)
```


Sets a value indicating whether this instance is CMX3 image.

Value: `true` if this instance is CMX3 image; otherwise, `false`.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | a value indicating whether this instance is CMX3 image. |

### toString() {#toString--}
```
public String toString()
```


Returns a String that represents this instance.

**Returns:**
java.lang.String - A String that represents this instance.
### toArray() {#toArray--}
```
public CmxRasterImage[] toArray()
```




**Returns:**
com.aspose.imaging.fileformats.cmx.objectmodel.specs.CmxRasterImage[]
### equals(Object o) {#equals-java.lang.Object-}
```
public boolean equals(Object o)
```


Check if objects are equal.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| o | java.lang.Object | The other object. |

**Returns:**
boolean - The equality comparison result.
### hashCode() {#hashCode--}
```
public int hashCode()
```


Get hash code of the current object.

**Returns:**
int - The hash code.
