ImageHelper Class

Description

图像帮助类。

decode

解码一个JPEG或PNG文件。

C

void easyar_ImageHelper_decode(easyar_Buffer * buffer, easyar_OptionalOfImage * Return)

C++

static std::optional<std::shared_ptr<Image>> decode(std::shared_ptr<Buffer> buffer)

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)