GetEmbeddedImages
VectorImage.GetEmbeddedImages method
获取嵌入的图像。
public virtual EmbeddedImage[] GetEmbeddedImages()
返回值
图像数组
例子
支持从矢量图像中提取嵌入的光栅图像
[C#]
var inputFileName = "test.cdr";
using (var image = Aspose.Imaging.Image.Load(inputFileName))
{
var vectorImage = ((Aspose.Imaging.VectorImage) image);
var images = vectorImage.GetEmbeddedImages();
var i = 0;
foreach (var im in images)
{
var outFileName = string.Format("image{0}.png", i++);
using (im)
{
im.Image.Save(outFileName, new PngOptions());
}
}
}
也可以看看
- class EmbeddedImage
- class VectorImage
- 命名空间 Aspose.Imaging
- 部件 Aspose.Imaging