What units is transparency stored in ooxml?

扶醉桌前 提交于 2019-12-12 04:45:07

问题


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>

Anyone have any idea how on earth "70%" translates to "40000"?


回答1:


It seems different for me. My alpha values seem to use this function:

y = -1000x + 100000

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.

It seems each single percentage unit corresponds to 1000 of these alpha units.



来源:https://stackoverflow.com/questions/11512198/what-units-is-transparency-stored-in-ooxml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!