API Reference
Class
RasterStoryExtensions
Encodes static or animated pixel inputs using the Stories-owned GIF and APNG exporters.
Inheritance
- Object
- RasterStoryExtensions
Methods
public static Void SaveGif(RgbaImage image, String path) #Returns:
VoidSaves one RGBA image as a single-frame GIF.
Parameters
- image ChartForgeX.Raster.RgbaImage
- path System.String
public static Byte[] ToApng(IReadOnlyList<RgbaImage> frames, Int32 delayCentiseconds = 10, Boolean loop = true) #Returns:
Byte[]Encodes ordered, equally sized frames as animated PNG.
Parameters
- frames System.Collections.Generic.IReadOnlyList<ChartForgeX.Raster.RgbaImage>
- One or more complete RGBA canvases with matching dimensions.
- delayCentiseconds System.Int32 = 10
- A nonnegative delay applied to every frame, up to 6,553,500 centiseconds. Zero is preserved.
- loop System.Boolean = true
- Repeats indefinitely when true; otherwise plays once.
ToGif 2 overloads
public static Byte[] ToGif(RgbaImage image) #Returns:
Byte[]Encodes one RGBA image as a single-frame GIF.
Parameters
- image ChartForgeX.Raster.RgbaImage
public static Byte[] ToGif(IReadOnlyList<RgbaImage> frames, Int32 delayCentiseconds = 10, Boolean loop = true) #Returns:
Byte[]Encodes ordered, equally sized frames as GIF.
Parameters
- frames System.Collections.Generic.IReadOnlyList<ChartForgeX.Raster.RgbaImage>
- One or more complete RGBA canvases with matching dimensions.
- delayCentiseconds System.Int32 = 10
- A nonnegative delay applied to every frame, up to 65,535 centiseconds. Zero is preserved.
- loop System.Boolean = true
- Repeats indefinitely when true; otherwise plays once.
public static Void WriteGif(RgbaImage image, Stream stream) #Returns:
VoidWrites one RGBA image as a single-frame GIF.
Parameters
- image ChartForgeX.Raster.RgbaImage
- stream System.IO.Stream
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?