How do I bulk process the formatting of pictures in Word, adjust brightness and contrast?

Source: Internet
Author: User

There are hundreds of shading images in each word file,
These image formats need to be formatted with a brightness of 50 and a contrast of 100, which removes shading.
How do I batch processing?

or let me help you to ideas it, how the front of all irrelevantly replying it.

Create a new macro, copy and paste the following code as it is, and then press F5 to execute.
' Sub Macro1 ()
    for i = 1 to ActiveDocument.InlineShapes.Count
         activedocument.inlineshapes (i). pictureformat.brightness = 0.5  ' Sets the brightness of the embedded image to
        Activedocument.inlineshapes (i). Pictureformat.contrast = #
' Sets the contrast of the embedded image to +
    Next i
    for i = 1 to actived Ocument. Shapes.count
       If activedocument.shapes (i). Type = Msopicture then  ' assumes that the floating object is a picture when handling
            ActiveDocument.Shapes (i). pictureformat.brightness = 0.5 
' Sets the brightness of the floating picture to

ActiveDocument.Shapes (i). Pictureformat.contrast = #
' Sets the contrast of the floating picture to +

End If
    Next i
Msgbox "processing is complete! "
' End Sub

It is recommended that you use some of the batch processing features in the File batch processing Toolbox V8.0 I developed.

How do I bulk handle the formatting of pictures in Word, adjust brightness and contrast?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.