## ToImage(Stream, ImageType) {#toimage_1}

Erstellt das Formbild und speichert es im angegebenen Format in einem Stream.

```csharp
public void ToImage(Stream stream, ImageType imageType)
```

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| stream | Stream | Der Ausgangsstrom. |
| imageType | ImageType | Der Typ, in dem das Bild gespeichert werden soll. |

### Bemerkungen

Folgende Formate werden unterstützt: .bmp, .gif, .jpg, .jpeg, .tiff, .emf.

### Beispiele

```csharp

[C#]
MemoryStream imageStream = new MemoryStream();
shape.ToImage(imageStream, ImageType.Png);
```

### Siehe auch

* enum [ImageType](../../imagetype)
* class [Shape](../../shape)
* namensraum [Aspose.Cells.Drawing](../../shape)
* Montage [Aspose.Cells](../../../)

---

## ToImage(string, ImageOrPrintOptions) {#toimage_4}

Speichert die Form in einer Datei.

```csharp
public void ToImage(string imageFile, ImageOrPrintOptions options)
```

### Beispiele

```csharp

[C#]
ImageOrPrintOptions op = new ImageOrPrintOptions();
shape.ToImage("exmaple.png", op);
```

### Siehe auch

* class [ImageOrPrintOptions](../../../aspose.cells.rendering/imageorprintoptions)
* class [Shape](../../shape)
* namensraum [Aspose.Cells.Drawing](../../shape)
* Montage [Aspose.Cells](../../../)

---

## ToImage(Stream, ImageOrPrintOptions) {#toimage_2}

Speichert die Form in einem Stream.

```csharp
public void ToImage(Stream stream, ImageOrPrintOptions options)
```

### Beispiele

```csharp

[C#]
MemoryStream imageStream = new MemoryStream();
ImageOrPrintOptions op = new ImageOrPrintOptions();
shape.ToImage(imageStream, op);
```

### Siehe auch

* class [ImageOrPrintOptions](../../../aspose.cells.rendering/imageorprintoptions)
* class [Shape](../../shape)
* namensraum [Aspose.Cells.Drawing](../../shape)
* Montage [Aspose.Cells](../../../)

---

## ToImage(ImageOrPrintOptions) {#toimage}

Gibt das Bitmap-Objekt der Form . zurück

```csharp
public Bitmap ToImage(ImageOrPrintOptions options)
```

### Beispiele

```csharp

[C#]
ImageOrPrintOptions op = new ImageOrPrintOptions();
System.Drawing.Bitmap btm = shape.ToImage(op);
```

### Siehe auch

* class [ImageOrPrintOptions](../../../aspose.cells.rendering/imageorprintoptions)
* class [Shape](../../shape)
* namensraum [Aspose.Cells.Drawing](../../shape)
* Montage [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
