---
layout: default-layout
noTitleIndex: true
needAutoGenerateSidebar: true
title: How to get the coordinates of the selected area on an image?
keywords: Dynamic Web TWAIN, Image Viewer, coordinates of the selected area
breadcrumbText: How to get the coordinates of the selected area on an image?
description: How to get the coordinates of the selected area on an image?
date: 2021-12-09 11:34:50 +0000
last_modified: 2024-09-20 05:13:20 +0000
---

# Image Viewer

## How to get the coordinates of the selected area on an image?

You can use the [`pageAreaSelected`](/_articles/info/api/WebTwain_Viewer.md#pageareaselected) event to get the coordinates of the selected area on an image. This event is triggered when the user selects an area (draws a rectangle) or moves a selected area on the current page. (Click the link to view syntax and sample usage)