ImageHelper Class

Description

图像帮助类。

decode

解码一个JPEG或PNG文件。

C: void easyar_ImageHelper_decode(easyar_Buffer * buffer, easyar_OptionalOfImage * Return)
C++17: static std::optional<std::shared_ptr<Image>> decode(std::shared_ptr<Buffer> buffer)
Traditional C++: static void decode(Buffer * buffer, Image * * Return)
Java: public static @Nullable Image decode(@Nonnull Buffer buffer)
Kotlin: companion object fun decode(buffer: Buffer): Image?
Objective-C: + (easyar_Image *)decode:(easyar_Buffer *)buffer
Swift: public static func decode(_ buffer: Buffer) -> Image?
C#: public static Optional<Image> decode(Buffer buffer)