# ImagePdfObject

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/annotation/content/ImagePdfObject.kt+class:androidx.pdf.annotation.content.ImagePdfObject) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
@ExperimentalPdfApi
public final class ImagePdfObject implements PdfObject
```

<br />

*** ** * ** ***

Represents an image object within a PDF document.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/annotation/content/ImagePdfObject#ImagePdfObject(android.graphics.Bitmap,android.graphics.RectF)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html bitmap, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html bounds)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/pdf/annotation/content/ImagePdfObject#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/androidx/pdf/annotation/content/ImagePdfObject#getBitmap()()` The `https://developer.android.com/reference/android/graphics/Bitmap.html` data of the image. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/androidx/pdf/annotation/content/ImagePdfObject#getBounds()()` The rectangular boundaries of its position and size on the PDF page. |
| `int` | `https://developer.android.com/reference/androidx/pdf/annotation/content/ImagePdfObject#hashCode()()` |

## Public constructors

### ImagePdfObject

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
public ImagePdfObject(@NonNull Bitmap bitmap, @NonNull RectF bounds)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getBitmap

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
public final @NonNull Bitmap getBitmap()
```

The `https://developer.android.com/reference/android/graphics/Bitmap.html` data of the image.

### getBounds

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
public final @NonNull RectF getBounds()
```

The rectangular boundaries of its position and size on the PDF page.

### hashCode

```
public int hashCode()
```