spire.presentation 6.4.5已发布。该版本支持通过流添加video以及支持了添加自定义路径动画。此外,本次更新还增强了转换ppt到图片的功能,同时也修复了加载ppt文档时出现的问题。详情请阅读以下内容。
新功能:
- 支持通过流添加video
appendvideomedia(stream stream, rectanglef rectangle);
presentation ppt = new presentation();
iautoshape shape = ppt.slides[0].shapes.appendshape(shapetype.rectangle, new rectanglef(0, 0, 200, 200));
animationeffect effect = ppt.slides[0].timeline.mainsequence.
addeffect(shape, animationeffecttype.pathuser);
commonbehaviorcollection common = effect.commonbehaviorcollection;
animationmotion motion = (animationmotion)common[0];
motion.origin = animationmotionorigin.layout;
motion.patheditmode = animationmotionpatheditmode.relative;
motionpath moinpath = new motionpath();
moinpath.add(motioncommandpathtype.moveto, new pointf[] { new pointf(0, 0) }, motionpathpointstype.curveauto, true);
moinpath.add(motioncommandpathtype.lineto, new pointf[] { new pointf(0.1f, 0.1f) }, motionpathpointstype.curveauto, true);
moinpath.add(motioncommandpathtype.lineto, new pointf[] { new pointf(-0.1f, 0.2f) }, motionpathpointstype.curveauto, true);
moinpath.add(motioncommandpathtype.end, new pointf[] { }, motionpathpointstype.curvestraight, true);
motion.path = moinpath;
ppt.savetofile(outputfile, fileformat.pptx2010);
ppt.dispose();
问题修复:
- 修复了转换pptx到图片,阴影效果错误的问题
- 修复了设置动画持续时间不正确的问题
- 修复了转换pptx到图片,内容不正确的问题
- 修复了加载pptx文档抛异常“system.nullreferenceexception”的问题
- 修复了加载ppt文档抛异常“system.indexoutofrangeexception”的问题
获取spire.presentation 6.4.5请点击:
https://www.e-iceblue.cn/downloads/spire-presentation-net.html