mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
4658b1cfb6
* APNG loader: Import addon to take over APNG handling * APNG loader: Transition code to using the AImgIO addon * APNG loader: Can now open APNGs. * AImgIO: Update to fix bugs * APNG loader: HTML5 * APNG loader: gdformat/gdlint addon * APNG loader: OpenSave formatting fix * APNG Loader: Add ignore line to OpenSave because it's too big * Fix GIFAnimationExporter bug caused by the switch to the addon
22 lines
641 B
GDScript
22 lines
641 B
GDScript
class_name AImgIOBaseExporter
|
|
extends Reference
|
|
# Represents a method for exporting animations.
|
|
|
|
var mime_type: String
|
|
|
|
|
|
# Exports an animation to a byte array of file data.
|
|
# The frames must be AImgIOFrame.
|
|
# fps_hint is only a hint, animations may have higher FPSes than this.
|
|
# The frame duration field (in seconds) is the true reference.
|
|
# progress_report_obj.callv(progress_report_method, progress_report_args) is
|
|
# called after each frame is handled.
|
|
func export_animation(
|
|
_frames: Array,
|
|
_fps_hint: float,
|
|
_progress_report_obj: Object,
|
|
_progress_report_method,
|
|
_progress_report_args
|
|
) -> PoolByteArray:
|
|
return PoolByteArray()
|