ImageAnnotation
Leave feedback
On this page
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. |
| 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) |
public ImageAnnotation()
Initializes new instance of ImageAnnotation class.
public final Rectangle getBox()
Gets or sets annotation position
Returns: Rectangle
public final void setBox(Rectangle value)
Gets or sets annotation position
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Rectangle |
public final String getImagePath()
Gets or sets image path
Returns: java.lang.String -
public final void setImagePath(String value)
Gets or sets image path
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getImageData()
Gets or sets image data
Returns: java.lang.String -
public final void setImageData(String value)
Gets or sets image data
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getImageExtension()
Gets or sets image data
Returns: java.lang.String -
public final void setImageExtension(String value)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final Double getOpacity()
Gets or sets annotation opacity
Returns: java.lang.Double -
public final void setOpacity(Double value)
Gets or sets annotation opacity
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Double |
public final Double getAngle()
Gets or sets annotation rotation angle
Returns: java.lang.Double
public final void setAngle(Double value)
Gets or sets annotation rotation angle
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Double |
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 -
public final void setZIndex(Integer value)
Gets or sets annotation pen color
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Integer |
public final System.Drawing.Image getImage()
Gets image object
Returns: com.aspose.ms.System.Drawing.Image -
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 -
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
public int hashCode()
Returns HashCode of Image Annotation
Returns: int
public Object deepClone()
Returns new Instance with same values
Returns: java.lang.Object -
public String toString()
Returns: java.lang.String
public String toString(ToStringStyle toStringStyle)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| toStringStyle | org.apache.commons.lang3.builder.ToStringStyle |
Returns: java.lang.String
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.