2022-12-23 18:08:46 +00:00
|
|
|
class_name AImgIOBaseExporter
|
2022-10-30 22:24:24 +00:00
|
|
|
extends Reference
|
|
|
|
# Represents a method for exporting animations.
|
|
|
|
|
|
|
|
var mime_type: String
|
|
|
|
|
|
|
|
|
|
|
|
# Exports an animation to a byte array of file data.
|
2022-12-23 18:08:46 +00:00
|
|
|
# The frames must be AImgIOFrame.
|
2022-10-30 22:24:24 +00:00
|
|
|
# fps_hint is only a hint, animations may have higher FPSes than this.
|
2022-12-23 18:08:46 +00:00
|
|
|
# The frame duration field (in seconds) is the true reference.
|
2022-10-30 22:24:24 +00:00
|
|
|
# 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()
|