ImageAnnotation
Inheritance: java.lang.Object, com.groupdocs.annotation.models.annotationmodels.AnnotationBase
All Implemented Interfaces: com.groupdocs.annotation.models.annotationmodels.interfaces.annotations.IImageAnnotation
public class ImageAnnotation extends AnnotationBase implements IImageAnnotation
Represents image annotation properties
Learn more
| Constructor | Description | 
|---|---|
| ImageAnnotation() | Initializes new instance of ImageAnnotation class. | 
Methods
| Method | Description | 
|---|---|
| getBox() | Gets or sets annotation position | 
| setBox(Rectangle value) | Gets or sets annotation position | 
| getImagePath() | Gets or sets image path | 
| setImagePath(String value) | Gets or sets image path | 
| getImageData() | Gets or sets image data | 
| setImageData(String value) | Gets or sets image data | 
| getImageExtension() | Gets or sets image data | 
| setImageExtension(String value) | |
| getOpacity() | Gets or sets annotation opacity | 
| setOpacity(Double value) | Gets or sets annotation opacity | 
| getAngle() | Gets or sets annotation rotation angle | 
| setAngle(Double value) | Gets or sets annotation rotation angle | 
| getZIndex() | Gets or sets z-index. | 
| setZIndex(Integer value) | Gets or sets annotation pen color | 
| getImage() | Gets image object | 
| equals(ImageAnnotation other) | Compares Image Annotations using IEquatable Equals method | 
| equals(Object o) | Compares Image Annotations using standard object Equals method | 
| hashCode() | Returns HashCode of Image Annotation | 
| deepClone() | Returns new Instance with same values | 
| toString() | |
| toString(ToStringStyle toStringStyle) | 
ImageAnnotation()
public ImageAnnotation()
Initializes new instance of ImageAnnotation class.
getBox()
public final Rectangle getBox()
Gets or sets annotation position
Returns: Rectangle
setBox(Rectangle value)
public final void setBox(Rectangle value)
Gets or sets annotation position
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | Rectangle | 
getImagePath()
public final String getImagePath()
Gets or sets image path
Returns: java.lang.String -
setImagePath(String value)
public final void setImagePath(String value)
Gets or sets image path
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.String | 
getImageData()
public final String getImageData()
Gets or sets image data
Returns: java.lang.String -
setImageData(String value)
public final void setImageData(String value)
Gets or sets image data
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.String | 
getImageExtension()
public final String getImageExtension()
Gets or sets image data
Returns: java.lang.String -
setImageExtension(String value)
public final void setImageExtension(String value)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.String | 
getOpacity()
public final Double getOpacity()
Gets or sets annotation opacity
Returns: java.lang.Double -
setOpacity(Double value)
public final void setOpacity(Double value)
Gets or sets annotation opacity
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.Double | 
getAngle()
public final Double getAngle()
Gets or sets annotation rotation angle
Returns: java.lang.Double
setAngle(Double value)
public final void setAngle(Double value)
Gets or sets annotation rotation angle
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.Double | 
getZIndex()
public final Integer getZIndex()
Gets or sets z-index. Default value is 0
The z-index property specifies the stack order of an element.
Returns: java.lang.Integer -
setZIndex(Integer value)
public final void setZIndex(Integer value)
Gets or sets annotation pen color
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | java.lang.Integer | 
getImage()
public final System.Drawing.Image getImage()
Gets image object
Returns: com.aspose.ms.System.Drawing.Image -
equals(ImageAnnotation other)
public final boolean equals(ImageAnnotation other)
Compares Image Annotations using IEquatable Equals method
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| other | ImageAnnotation | The ImageAnnotation object to compare with the current object | 
Returns: boolean -
equals(Object o)
public boolean equals(Object o)
Compares Image Annotations using standard object Equals method
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| o | java.lang.Object | The object to compare with the current object | 
Returns: boolean
hashCode()
public int hashCode()
Returns HashCode of Image Annotation
Returns: int
deepClone()
public Object deepClone()
Returns new Instance with same values
Returns: java.lang.Object -
toString()
public String toString()
Returns: java.lang.String
toString(ToStringStyle toStringStyle)
public String toString(ToStringStyle toStringStyle)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| toStringStyle | org.apache.commons.lang3.builder.ToStringStyle | 
Returns: java.lang.String