透明度在ooxml中存储什么单位? [英] What units is transparency stored in ooxml?
问题描述
我有一个形状单一的pptx文件.将其设置为70%透明我可以比较pptx并看到唯一的区别是在/ppt/slides/slide1.xml
I have a pptx file with a single shape. Setting it to 70% transaprent I can compare the pptx and see the only difference is in /ppt/slides/slide1.xml
<a:solidFill>
<a:schemeClr val="accent1">
<a:alpha val="40000"/>
</a:schemeClr>
</a:solidFill>
任何人都不知道地球上的"70%"如何转换为"40000"?
Anyone have any idea how on earth "70%" translates to "40000"?
推荐答案
对我来说似乎有所不同.我的alpha值似乎使用了此功能:
It seems different for me. My alpha values seem to use this function:
y = -1000x + 100000
其中x
是百分比,y
是Alpha值.我建议您执行相同操作(根据您的计算机设计出功能并进行验证),不要担心.
Where x
is the percentage and y
is the alpha value. I recommend you do the same (figure out a function based on your computer and verify them) and not worry about it.
似乎每个单独的百分比单位都对应1000个这些alpha单位.
It seems each single percentage unit corresponds to 1000 of these alpha units.
这篇关于透明度在ooxml中存储什么单位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!