(安装包仅提供部分功能,并设置限制,如需试用完整功能请申请免费授权)
软件国产化服务季来啦!整合所有格式的Aspose.Total永久授权正在火热促销中,乐享85折起!联系客服立马1分钟了解全部咨询!
具体更新内容
key | 概述 | 类别 |
---|---|---|
SLIDESNET-42182 | 有关演示中形状ID的调查 | 调研中 |
SLIDESNET-42173 | 密码解密查询 | 调研中 |
SLIDESNET-42152 | OLE对象未在最新版本中启用 | 调研中 |
SLIDESNET-41967 | .NET 5支持 | 新功能 |
SLIDESNET-41960 | 将DefaultRegularFont属性添加到NotesCommentsLayoutingOptions | 新功能 |
SLIDESNET-35920 | 新功能 | |
SLIDESNET-42099 | 使IChartData.SetRange()方法对所有图表类型均适用 | 增强功能 |
更多更新修复请参考:【Aspose.Slides for .NET v20.10更新说明】
公共API更改
新增了艺术字API支持
艺术字API支持已添加。艺术字是一项特殊功能,允许用户为文本赋予特殊效果,例如弯曲文本,3D文本,颜色渐变等。
添加IRenderingOptions接口和RenderingOptions类
IRenderingOptions接口并实现它RenderingOptions类已添加。它们的目的是汇总在演示或幻灯片渲染过程中使用的选项。
IRenderingOptions声明:

从声明中可以看出,IRenderingOptions继承了ISaveOptions,该属性使WarningCallback,ProgressCallback和DefaultRegularFont属性可在RenderingOptions类实例中与NotesCommentsLayouting选项一起指定。
下面的代码示例演示了一种可能的用例(获取具有不同默认字体和幻灯片注释的幻灯片缩略图):
using (Presentation pres = new Presentation("SomePresentation.pptx")){ IRenderingOptions renderingOpts = new RenderingOptions(); renderingOpts.NotesCommentsLayouting.NotesPosition = NotesPositions.BottomTruncated; pres.Slides[0].GetThumbnail(renderingOpts).Save("SomePresentation-Slide1-Original.png", ImageFormat.Png); renderingOpts.DefaultRegularFont = "Arial Black"; pres.Slides[0].GetThumbnail(renderingOpts).Save("SomePresentation-Slide1-ArialBlackDefault.png", ImageFormat.Png); renderingOpts.DefaultRegularFont = "Arial Narrow"; pres.Slides[0].GetThumbnail(renderingOpts).Save("SomePresentation-Slide1-ArialNarrowDefault.png", ImageFormat.Png);}
添加ITextFrameFormat.ThreeDFormat和ITextFrameFormat.Transform属性
新的ThreeDFormat和Transform属性已添加到ITextFrameFormat接口。这些属性允许将3D效果设置为TextFrame中的文本。
属性声明:


下面的代码段演示了将3D效果设置为文本的方法:
using (Presentation pres = new Presentation()){ IAutoShape autoShape = pres.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 10, 20, 400, 300); ITextFrame textFrame = autoShape.TextFrame; textFrame.Text = "Aspose.Slide Test Text"; // Set text transformation textFrame.TextFrameFormat.Transform = TextShapeType.ArchUpPour; // Set Extrusion textFrame.TextFrameFormat.ThreeDFormat.ExtrusionColor.Color = Color.Orange; textFrame.TextFrameFormat.ThreeDFormat.ExtrusionHeight = 6; // Set Contour textFrame.TextFrameFormat.ThreeDFormat.ContourColor.Color = Color.DarkRed; textFrame.TextFrameFormat.ThreeDFormat.ContourWidth = 1.5; // Set Depth textFrame.TextFrameFormat.ThreeDFormat.Depth = 3; // Set Material textFrame.TextFrameFormat.ThreeDFormat.Material = MaterialPresetType.Plastic; // Set Lighting textFrame.TextFrameFormat.ThreeDFormat.LightRig.Direction = LightingDirection.Top; textFrame.TextFrameFormat.ThreeDFormat.LightRig.LightType = LightRigPresetType.Balanced; textFrame.TextFrameFormat.ThreeDFormat.LightRig.SetRotation(0, 0, 40); // Set camera type textFrame.TextFrameFormat.ThreeDFormat.Camera.CameraType = CameraPresetType.PerspectiveContrastingRightFacing;}
还想要更多吗可以点击阅读【2020 · Aspose最新资源整合】,查找需要的教程资源。如果您有任何疑问或需求,请随时加入Aspose技术交流群(),我们很高兴为您提供查询和咨询。
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!