ChartFillFormat.UserPicture Method
Fills the specified shape with one large image.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub UserPicture ( _
PictureFile As Object, _
PictureFormat As Object, _
PictureStackUnit As Object, _
PicturePlacement As Object _
)
'Usage
Dim instance As ChartFillFormat
Dim PictureFile As Object
Dim PictureFormat As Object
Dim PictureStackUnit As Object
Dim PicturePlacement As Object
instance.UserPicture(PictureFile, PictureFormat, _
PictureStackUnit, PicturePlacement)
void UserPicture(
Object PictureFile,
Object PictureFormat,
Object PictureStackUnit,
Object PicturePlacement
)
Parameters
- PictureFile
Type: System.Object
The name of the picture file.
- PictureFormat
Type: System.Object
- PictureStackUnit
Type: System.Object
- PicturePlacement
Type: System.Object
Remarks
If you want to fill the shape with small tiles of an image, use the UserTextured(String) method.
Examples
This example adds two rectangles to myDocument. The rectangle on the left is filled with one large image of the picture in Tiles.bmp; the rectangle on the right is filled with many small tiles of the picture in Tiles.bmp
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes
.AddShape(msoShapeRectangle, 0, 0, 200, 100).Fill _
.UserPicture"c:\windows\tiles.bmp"
.AddShape(msoShapeRectangle, 300, 0, 200, 100).Fill _
.UserTextured "c:\windows\tiles.bmp"
End With