---
title: "Encode"
url: "https://reference.aspose.com/3d/ar/net/aspose.threed.formats/dracoformat/encode/"
product: "Aspose.3D لمرجع .NET API"
description: "تشفير الكيان إلى stream المحدد"
---

## Encode(Entity, Stream, DracoSaveOptions) {#encode_1}

تشفير الكيان إلى stream المحدد

```csharp
public void Encode(Entity entity, Stream stream, DracoSaveOptions options = null)
```

| معامل | يكتب | وصف |
| --- | --- | --- |
| entity | Entity | الكيان المطلوب ترميزه |
| stream | Stream | الدفق الذي ستتم كتابة البيانات المشفرة إليه |
| options | DracoSaveOptions | خيارات إضافية لتشفير سحابة النقطة |

### أنظر أيضا

* class [Entity](../../../aspose.threed/entity)
* class [DracoSaveOptions](../../dracosaveoptions)
* class [DracoFormat](../../dracoformat)
* مساحة الاسم [Aspose.ThreeD.Formats](../../dracoformat)
* المجسم [Aspose.3D](../../../)

---

## Encode(Entity, string, DracoSaveOptions) {#encode_2}

تشفير الكيان إلى file المحدد

```csharp
public void Encode(Entity entity, string fileName, DracoSaveOptions options = null)
```

| معامل | يكتب | وصف |
| --- | --- | --- |
| entity | Entity | الكيان المطلوب ترميزه |
| fileName | String | اسم الملف المراد كتابته |
| options | DracoSaveOptions | خيارات إضافية لتشفير سحابة النقطة |

### أنظر أيضا

* class [Entity](../../../aspose.threed/entity)
* class [DracoSaveOptions](../../dracosaveoptions)
* class [DracoFormat](../../dracoformat)
* مساحة الاسم [Aspose.ThreeD.Formats](../../dracoformat)
* المجسم [Aspose.3D](../../../)

---

## Encode(Entity, DracoSaveOptions) {#encode}

تشفير الكيان إلى Draco raw data

```csharp
public byte[] Encode(Entity entity, DracoSaveOptions options = null)
```

| معامل | يكتب | وصف |
| --- | --- | --- |
| entity | Entity | الكيان المطلوب ترميزه |
| options | DracoSaveOptions | خيارات إضافية لتشفير سحابة النقطة |

### قيمة الإرجاع

يتم تمثيل بيانات draco المشفرة بالبايت

### أنظر أيضا

* class [Entity](../../../aspose.threed/entity)
* class [DracoSaveOptions](../../dracosaveoptions)
* class [DracoFormat](../../dracoformat)
* مساحة الاسم [Aspose.ThreeD.Formats](../../dracoformat)
* المجسم [Aspose.3D](../../../)

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