# WritingArea

public class **WritingArea** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Represents the properties of the writing area.

### Public Constructor Summary

|---|---|
|   | [WritingArea](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/recognition/WritingArea#WritingArea(float,%20float))(float width, float height) Constructor taking the width and height of the writing area. |

### Public Method Summary

|---|---|
| float | [getHeight](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/recognition/WritingArea#getHeight())() Returns the writing area height. |
| float | [getWidth](https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/recognition/WritingArea#getWidth())() Returns the writing area width. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Constructors

#### public **WritingArea** (float width, float height)

Constructor taking the width and height of the writing area.

Both numbers must be in the same unit as in an `https://developers.google.com/android/reference/com/google/mlkit/vision/digitalink/recognition/Ink`
instance.

## Public Methods

#### public float **getHeight** ()

Returns the writing area height.

#### public float **getWidth** ()

Returns the writing area width.