|
|
|
date: Mon, 04 Aug 2008 18:50:35 +0200,
group: microsoft.public.office.developer.automation
back
Re: [Powerpoint] How to get a shape's background color?
In article <g7prt3$vqj$00$1@news.t-online.com>, Daniel Kirsch wrote:
> Steve Rindsberg wrote:
> > It's the .Transparency value that determines whether a fill is transparent or
> > not and to what degree.
>
> I want to convert a slide into HTML. I don't mean opacity (which has a
> value from 0 to 1) but I mean the css color value "transparent" for the
> backgroundColor. Sorry for this confusion.
>
> All my objects in the powerpoint presentation have a
> Shape.Fill.Transparency value of 0.0 both the ones with a solid fill
> color and those with no fill color (transparent in the CSS sense).
>
> > What puzzles me is that 00cc99 value. I don't think that's legit.
OK, back up then. This is the first you've mentioned about HTML/CSS or that the
values you're quoting are from HTML. We're talking two entirely different
languages here. No wonder we're confused. ;-)
> I think I've found the reason for this special value:
> A shape's ForeColor property seems to inherit from the DefaultShape
> (Presentation.DefaultShape.Fill.ForeColor) At least the 00cc99 value is
> the DefaultShape's ForeColor value (well, the original value is 10079232
> which I convert to 00cc99).
When a new shape is created in PPT, it does inherit the presentation's defaults
for new shapes, which include fill color and a host of other attributes, yes.
> When exporting to html from Powerpoint[1] the export contains the color
> values as well but transparent objects have an additional attribute
> filled="f"
> which seems to cause the fillcolor not to be used.
>
> Which Shape or Fill property could cause this filled attribute?
I'm not seeing that here; have played with fills a good bit now and have yet to
see filled="f" in any of the resulting HTML.
If you start with a blank presentation, add a single rectangle, what do you get?
If the filled=f appears, email me a copy at steve at-sign pptools dot com
> [1] Example of an exported transparent shape:
>
> <v:shape
> id="_x0000_s24618"
> type="#_x0000_t202"
> style='position:absolute; left:168pt; top:258pt; width:468pt;
> height:84.25pt'
> filled="f"
> fillcolor="#0c9 [4]"
> stroked="f"
> strokecolor="black [1]">
> </v:shape>
>
--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
date: Mon, 11 Aug 2008 16:41:33 EDT
author: Steve Rindsberg
|
|