---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/image
---

# Image

## Overview

`Image` is a type in Aspose.PDF FOSS for Go.

Image holds an extracted image with its encoded data and metadata.

This type declares 2 methods for Image objects in Go programs.
Available methods include: `Save`, `WriteTo`.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.
Properties: `BPC`, `ColorSpace`, `Data`, `Format`, `Height`, `Inline`, and 5 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Data` | `[]byte` | Read/Write | Gets the data. |
| `Format` | `ImageFormat` | Read/Write | Gets the format. |
| `Width` | `int` | Read/Write | Gets the width. |
| `Height` | `int` | Read/Write | Gets the height. |
| `BPC` | `int` | Read/Write | Gets the bpc. |
| `ColorSpace` | `ImageColorSpace` | Read/Write | Gets the color space. |
| `X` | `float64` | Read/Write | Gets the x. |
| `Y` | `float64` | Read/Write | Gets the y. |
| `PageWidth` | `float64` | Read/Write | Gets the page width. |
| `PageHeight` | `float64` | Read/Write | Gets the page height. |
| `Inline` | `bool` | Read/Write | Gets the inline. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Save(path: string)` → `error` | Save writes the image data to a file. |
| `WriteTo(w: io.Writer)` → `(int64, error)` | WriteTo writes the image data to w. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)