Class ImageExporter
- Namespace
- PlumJsonAnimator.Services
- Assembly
- PlumJsonAnimator.dll
Provides methods for exporting animations
public class ImageExporter
- Inheritance
-
ImageExporter
- Inherited Members
Constructors
ImageExporter(GlobalState, LocalizationService)
public ImageExporter(GlobalState globalState, LocalizationService localizationService)
Parameters
globalStateGlobalStatelocalizationServiceLocalizationService
Fields
ExportPath
public string ExportPath
Field Value
Properties
Canvas
public Canvas? Canvas { get; set; }
Property Value
- Canvas
Methods
ExportAsGif(double, double, string, Project)
Exports animation into gif file
public Task<ExportResult> ExportAsGif(double start, double end, string outputFile, Project project)
Parameters
startdoubleStart animation time
enddoubleEnd animation time
outputFilestringGif file
projectProject
Returns
ExportAsJpg(double, double, string, Project)
Exports animation into array of jpg images
public Task<ExportResult> ExportAsJpg(double start, double end, string outputFolder, Project project)
Parameters
startdoubleStart animation time
enddoubleEnd animation time
outputFolderstringFolder with array of images
projectProject
Returns
ExportAsMp4(double, double, string, string, Project)
Exports animation into mp4 file
public Task<ExportResult> ExportAsMp4(double start, double end, string outputFile, string ffmpegPath, Project project)
Parameters
startdoubleStart animation time
enddoubleEnd animayion time
outputFilestringOutput MP4 file
ffmpegPathstringPath to ffmpeg exe
projectProject
Returns
ExportAsPng(double, double, string, Project)
Exports animation into array of png images
public Task<ExportResult> ExportAsPng(double start, double end, string outputFolder, Project project)
Parameters
startdoubleStart animation time
enddoubleEnd animation time
outputFolderstringFolder with array of images
projectProject
Returns
Events
ProgressChanged
public event EventHandler<int>? ProgressChanged