Kachelbild als Textur innerhalb der Form
Contents
[
Hide
]
Mögliche Nutzungsszenarien
Wenn das Bild klein ist und nicht die gesamte Oberfläche der Form abdeckt, ohne an Qualität zu verlieren, haben Sie die Möglichkeit, es zu kacheln. Kacheln füllt die Formoberfläche mit einem kleinen Bild, indem sie wiederholt werden, als wären sie Kacheln.
Kachelbild als Textur innerhalb der Form
Sie können die Formoberfläche mit einem Bild füllen und sie mit kachelnShape.Fill.TextureFill.IstTiling Eigenschaft und Einstellungwahr . Bitte sehen Sie sich den folgenden Beispielcode an, itsBeispiel-Excel-Datei sowie den Screenshot als Referenz.
Bildschirmfoto
Beispielcode
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"); |