---
title: "PdfMarkImage"
description: "Namespace: Lacuna.RestPki.Client"
canonical: "https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfMarkImage"
locale: "pt-BR"
product: "PKI SDK"
last_updated: "2026-06-02"
---

# PdfMarkImage

**Namespace:** `Lacuna.RestPki.Client`  
**Assembly:** `Lacuna.RestPki.Client`  
_Class_

```csharp
public class PdfMarkImage
```

**Hierarquia:** [`object`](https://learn.microsoft.com/dotnet/api/system.object) → `PdfMarkImage`

## Construtores

### `PdfMarkImage()`

```csharp
public PdfMarkImage()
```

---

### `PdfMarkImage(byte[], string)`

```csharp
public PdfMarkImage(byte[] imageContent, string mimeType)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `imageContent` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |
| `mimeType` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

---

### `PdfMarkImage(string, string)`

```csharp
public PdfMarkImage(string imageUrl, string mimeType = null)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `imageUrl` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |
| `mimeType` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

---

## Propriedades

### `Content`

```csharp
public byte[] Content { get; set; }
```

**Retorno**

[`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte)

---

### `MimeType`

```csharp
public string MimeType { get; set; }
```

**Retorno**

[`string`](https://learn.microsoft.com/dotnet/api/system.string)

---

### `Opacity`

```csharp
[Obsolete("Use PdfMarkElement.Opacity instead")]
public double Opacity { get; set; }
```

**Retorno**

[`double`](https://learn.microsoft.com/dotnet/api/system.double)

---

### `Url`

```csharp
public string Url { get; set; }
```

**Retorno**

[`string`](https://learn.microsoft.com/dotnet/api/system.string)

---

## Métodos

### `SetContentFromFile(string)`

```csharp
public void SetContentFromFile(string filePath)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `filePath` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

---

### `ToModel()`

```csharp
public PdfMarkImageModel ToModel()
```

**Retorno**

`PdfMarkImageModel`

---

## Membros herdados

[`GetType()`](https://learn.microsoft.com/dotnet/api/system.object.gettype), [`MemberwiseClone()`](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [`ToString()`](https://learn.microsoft.com/dotnet/api/system.object.tostring), [`Equals(object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)>), [`Equals(object, object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)>), [`ReferenceEquals(object, object)`](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [`GetHashCode()`](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)
