![]() A positive percentage specifies an inset while a negative percentage specifies an outset. Each edge of the fill rectangle is defined by a percentage offset from the corresponding edge of the shape’s bounding box. When stretching is specified for an image, a source rectangle is scaled to fit the specified fill rectangle. Using the StretchOffsetLeft, StretchOffsetTop, StretchOffsetRight and StretchOffsetBottom properties from the IPictureFillFormat interface and PictureFillFormat class, you can specify a fill rectangle. Using ( var presentation = new Presentation ( folderPath + "Test.pptx" )) Use StretchOff Property ![]() This C# code shows you how to create a picture frame with relative scale:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |