Excel resimleriyle çalışma – Aspose.Cells Cloud Dokümantasyonu

Excel dosyasında resimlerle çalışma

Bu kılavuz, Aspose.Cells Cloud REST API aracılığıyla Excel çalışma sayfalarındaki resimlerle (aynı zamanda görüntü olarak da bilinir) nasıl çalışılacağını açıklar. Excel resimlerini alma, ekleme, güncelleme ve silme gibi temel resimle ilgili işlemleri kapsar ve her görev için ayrıntılı örnekleri gösterir.

Ön gereksinimler: Aspose.Cells Cloud hesabı, geçerli bir API anahtarı ve seçtiğiniz dil için uygun SDK’nın kurulmuş olması.

API referansı

Belirli bir biçimde resim alma

HTTP Yöntemi Uç Nokta Gerekli Parametreler Örnek İstek Örnek Yanıt Durum Kodları
GET /cells/{fileName}/worksheets/{sheetName}/pictures/{pictureIndex} fileName (path), sheetName (path), pictureIndex (path), format (query) GET https://api.aspose.cloud/v3.0/cells/myBook.xlsx/worksheets/Sheet1/pictures/0?format=png İkili resim verisi (PNG, JPEG vb.) 200 OK, 400 Bad Request, 401 Unauthorized, 404 Not Found, 500 Server Error

Tüm resim bilgilerini alma

HTTP Yöntemi Uç Nokta Gerekli Parametreler Örnek İstek Örnek Yanıt Durum Kodları
GET /cells/{fileName}/worksheets/{sheetName}/pictures fileName (path), sheetName (path) GET https://api.aspose.cloud/v3.0/cells/myBook.xlsx/worksheets/Sheet1/pictures JSON dizisi (resim meta verileri: dizin, ad, konum, boyut) 200 OK, 400, 401, 404, 500

Resim ekleme

HTTP Yöntemi Uç Nokta Gerekli Parametreler Örnek İstek Gövdesi Örnek Yanıt Durum Kodları
POST /cells/{fileName}/worksheets/{sheetName}/pictures fileName (path), sheetName (path) { "image": "<base64‑kodlanmış‑resim>", "upperLeftRow": 5, "upperLeftColumn": 2, "width": 200, "height": 150 } { "code": 200, "status": "OK", "pictureIndex": 3 } 201 Created, 400, 401, 404, 500

Resim güncelleme

HTTP Yöntemi Uç Nokta Gerekli Parametreler Örnek İstek Gövdesi Örnek Yanıt Durum Kodları
PUT /cells/{fileName}/worksheets/{sheetName}/pictures/{pictureIndex} fileName (path), sheetName (path), pictureIndex (path) { "upperLeftRow": 10, "upperLeftColumn": 4, "width": 300, "height": 250 } { "code": 200, "status": "OK" } 200 OK, 400, 401, 404, 500

Tüm resimleri silme

HTTP Yöntemi Uç Nokta Gerekli Parametreler Örnek İstek Örnek Yanıt Durum Kodları
DELETE /cells/{fileName}/worksheets/{sheetName}/pictures fileName (path), sheetName (path) DELETE https://api.aspose.cloud/v3.0/cells/myBook.xlsx/worksheets/Sheet1/pictures { "code": 200, "status": "All pictures deleted." } 200 OK, 400, 401, 404, 500

Belirli bir resmi silme

HTTP Yöntemi Uç Nokta Gerekli Parametreler Örnek İstek Örnek Yanıt Durum Kodları
DELETE /cells/{fileName}/worksheets/{sheetName}/pictures/{pictureIndex} fileName (path), sheetName (path), pictureIndex (path) DELETE https://api.aspose.cloud/v3.0/cells/myBook.xlsx/worksheets/Sheet1/pictures/2 { "code": 200, "status": "Picture deleted." } 200 OK, 400, 401, 404, 500

İlgili konular

Aspose.Cells Cloud’da diğer resimle ilgili işlemleri inceleyin: