# Add image annotation The page describes how to add image annotation to a document using GroupDocs.Annotation for Java. Image annotation allows you to add an image on document page as shown in the picture below: ![](https://docs.groupdocs.com/annotation/net/images/add-image-annotation.png) You can set the following properties of the [ImageAnnotation](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.models.annotationmodels/imageannotation/) class: * [ImagePath](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.models.annotationmodels/imageannotation/#setImagePath-java.lang.String-) defines the image local or remote path * [Box](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.models.annotationmodels/imageannotation/#setBox-com.groupdocs.annotation.models.Rectangle-) defines the annotation position on the page using the [Rectangle](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.models/rectangle/) structure (image will be resized for specified width and height) * [Opacity](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.models.annotationmodels/imageannotation/#setOpacity-java.lang.Double-) allows you to set the annotation opacity (present in all supported formats, examples of it you can see above) * [Angle](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.models.annotationmodels/imageannotation/#setAngle-java.lang.Double-) defines the annotation rotation angle To add an image annotation, follow these steps: 1. Instantiate the [Annotator](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation/annotator/) class. Specify the input document path or stream. 2. Instantiate the [ImageAnnotation](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.models.annotationmodels/imageannotation/) class. Specify the appropriate properties (position, page number, etc). 3. Call the [Add](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation/annotator/#add-com.groupdocs.annotation.models.annotationmodels.AnnotationBase-) method. Specify the [ImageAnnotation](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.models.annotationmodels/imageannotation/) class. 4. Call the [Save](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation/annotator/#save--) method. Specify the output document path or stream. The following code snippet shows how to add [ImageAnnotation](https://reference.groupdocs.com/annotation/java/com.groupdocs.annotation.models.annotationmodels/imageannotation/) to the document: {{< tabs "example1">}} {{< tab "Java" >}} ```java try(final Annotator annotator = new Annotator("input.pdf")){ ImageAnnotation imageAnnotation = new ImageAnnotation(); imageAnnotation.setBox(new Rectangle(100, 100, 100, 100)); imageAnnotation.setOpacity(0.7); imageAnnotation.setPageNumber(0); imageAnnotation.setImagePath("www.google.com.ua/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png"); imageAnnotation.setAngle(100.); annotator.add(imageAnnotation); annotator.save("result_image_annotation.pdf"); } ``` {{< /tab >}} {{< /tabs >}}