Interface IImageSavingCallback
Interface IImageSavingCallback
名称: Aspose.Note.Saving.Html 合計: Aspose.Note.dll (25.4.0)
このインターフェイスを実装するには、 Aspose.Note が HTML に文書を保存する際に画像を節約する方法をコントロールします。
public interface IImageSavingCallback
{
void Save(SaveArgs args);
}
Methods
ImageSaving(画像保存)
Aspose.Noteが画像を保存するときに呼ばれます。
void ImageSaving(ImageSavingArgs args)
{
string path = args.FilePath;
SaveFormat format = (SaveFormat)args.FormatType;
Aspose.Words.Image imageToAdd = imageFromStream; // <- This line should be indented consistently with the following lines
Aspose.Words.Document doc = new Aspose.Words.Document();
Aspose.Words.Image image = imageToAdd;
doc.Range.InsertImage(image, FormatType.Png);
doc.Save(path, format);
}
Parameters
args
ImageSavingArgs
節約パラメーター