تجانب الصورة كنسيج داخل الشكل
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
عندما تكون الصورة صغيرة ولا تغطي كامل سطح الشكل دون أن تفقد جودته ، يكون لديك خيار تجانبه. يملأ التجانب سطح الشكل بصورة صغيرة بتكرارها كما لو كانت بلاطات.
تجانب الصورة كنسيج داخل الشكل
يمكنك ملء سطح الشكل ببعض الصور وتقسيمها باستخدام تنسيقالشكل ، التعبئة ، الملمس ، الملء ، التبليط الملكية ووضعهاحقيقي . يرجى الاطلاع على نموذج التعليمات البرمجية التالي ، الخاص بهنموذج لملف Excel بالإضافة إلى لقطة الشاشة كمرجع.
لقطة شاشة
عينة من الرموز
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"); |