vbscript 文件-AddWatermarkToImagesPowerPointSlide.vb

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 文件-AddWatermarkToImagesPowerPointSlide.vb相关的知识,希望对你有一定的参考价值。

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As SlidesDocument = Document.Load(Of SlidesDocument)("D:\test.pptx")
    Dim watermark As New TextWatermark("Protected image", New Font("Arial", 8))
    watermark.HorizontalAlignment = HorizontalAlignment.Center
    watermark.VerticalAlignment = VerticalAlignment.Center
    watermark.RotateAngle = 45
    watermark.SizingType = SizingType.ScaleToParentDimensions
    watermark.ScaleFactor = 1

    ' Get all images from the first slide
    Dim images As WatermarkableImageCollection = doc.Slides(0).FindImages()

    ' Add watermark to all found images
    For Each image As WatermarkableImage In images
        image.AddWatermark(watermark)
    Next

    doc.Save()
End Using

以上是关于vbscript 文件-AddWatermarkToImagesPowerPointSlide.vb的主要内容,如果未能解决你的问题,请参考以下文章

vbscript WatermarkOperations-AddWatermarkToAbsolutePosition.vb

vbscript WatermarkOperations-AddWatermarkToAbsolutePosition.vb

vbscript WatermarkOperations-AddWatermarkToImages.vb

vbscript WatermarkOperations-AddWatermarkToRelativePosition.vb

vbscript VBScript将可用磁盘空间写入文件

从批处理文件运行 vbscript