Resmi Şeklin İçinde Bir Doku Olarak Döşe
Contents
[
Hide
]
Olası Kullanım Senaryoları
Resim küçük olduğunda ve kalitesini kaybetmeden şeklin tüm yüzeyini kaplamadığında, onu döşeme seçeneğiniz vardır. Döşeme, şekil yüzeyini küçük bir görüntüyle, bunları sanki döşemelermiş gibi tekrarlayarak doldurur.
Resmi Şeklin İçinde Bir Doku Olarak Döşe
Şekil yüzeyini bir görüntü ile doldurabilir veShape.Fill.TextureFill.IsTiling özellik ve ayarlamadoğru . Lütfen aşağıdaki örnek koda bakın,örnek excel dosyası referans için ekran görüntüsünün yanı sıra.
Ekran görüntüsü
Basit kod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
//Load sample Excel file | |
Workbook wb = new Workbook(sourceDir + "sampleTextureFill_IsTiling.xlsx"); | |
//Access first worksheet | |
Worksheet ws = wb.Worksheets[0]; | |
//Access first shape inside the worksheet | |
Shape sh = ws.Shapes[0]; | |
//Tile Picture as a Texture inside the Shape | |
sh.Fill.TextureFill.IsTiling = true; | |
//Save the output Excel file | |
wb.Save(outputDir + "outputTextureFill_IsTiling.xlsx"); |