Color depth - 8 bit, 16 bit or 24 bit

  • Thread starter Thread starter Peter Jackson
  • Start date Start date
P

Peter Jackson

Hi All,
How do I tell what the color depth is of a picture object, I would like to
do:
Shp.Export FileName, shapeFormate

where shapeFormate and FileName are determined by the color depth.
e.g.
Select Case Shp.ImageDepth
Case 0 to 8
shapeFormate = ppShapeFormatGIF
FileName = Shp.Name & ".gif"
Case 9 to 16
shapeFormate = ppShapeFormatJPG
FileName = Shp.Name & ".jpg"
Case Else
shapeFormate = ppShapeFormatBMP
FileName = Shp.Name & ".bmp"
End Select

Or maybe there is another simple way??

TIA

Regards, Peter
 
Peter,
I don't think there is any way to ascertain the color depth of an
inserted picture. I also don't think you could capture that even while
importing the picture based on the file extension. For example a jpg
could have any of the mentioned color depths you are looking for.
To add even more complexity to the matter, PowerPoint stores all
images, except jpgs, as png files. It leaves jpgs natively jpg.

What are you trying to do with this here. Maybe there are other
thoughts we could bring up about image size that might help.
Brian Reilly, PowerPoint MVP
 
Hello Peter,

PowerPoint does not have the specific capability that you are looking for.

If you (or anyone else reading this message) think that PowerPoint should
provide a way to display (and perhaps change) the properties of inserted
images or, perhaps even any selection (without having to resort to add-ins
or VBA), don't forget to send your feedback to Microsoft at:

http://register.microsoft.com/mswish/suggestion.asp

As with all product suggestions, it's important that you not just state
your wish but also why it is important to you that your product suggestion
be implemented by Microsoft. Microsoft receives thousands of product
suggestions every day and we read each one but, in any given product
development cycle, there are only sufficient resources to address the ones
that are most important to our customers so take the extra time to state
your case as clearly and completely as possible.

IMPORTANT: Each submission should be a single suggestion (not a list of
suggestions)

John Langhans

Supportability Program Manager
Microsoft Office PowerPoint for Windows
Microsoft Office Picture Manager for Windows

This posting is provided "AS IS" with no warranties, and confers no rights.

Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
Back
Top