Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2007

Tip: Looking for answers? Try searching our database.

Macro to change color depth of all images (BMPs) in document?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ohaya - 19 Aug 2007 19:47 GMT
Hi,

I was wondering if it's possible for a macro (or something else maybe)
to go through a Word document and change the color depth of all images
in the document?

I do a lot of technical documents where I include screenshots, and to
reduce the document file size, I change the color depth of the images
(using Paint) to 256 bit, but this is very time-consuming, so I was
wondering if it'd be possible to automate this?

Thanks,
Jim
Jonathan West - 19 Aug 2007 19:59 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> (using Paint) to 256 bit, but this is very time-consuming, so I was
> wondering if it'd be possible to automate this?

In principle this is possible, if you can write or get hold of the necessary
graphics libraries. I have had some success compressing images using
Freeimage.dll, which is an open source freeware graphics library. I can't
remember offhand whether Freeimage can change color depth, but I suspect it
can.

However, I would suggest an entirely different approach. I suspect that you
are using the Alt-Printscreen function to take your screenshots. Don't.
Instead, invest in a proper screen capture program (I use SnagIt) and use
that to take your screenshots. Set up to save the screenshots as graphic
files in PNG format. This will enable your graphics to have much smaller
file sizes than the bitmaps produced by Alt-Printscreen. Then you can insert
the graphic files into your Word document, and you won't need to reduce the
color depth to 256 colors.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.