ImageHelper Class

Description

Image helper class.

decode

Decodes a JPEG or PNG file.

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)

C++03

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)