Assets/EasyAR/Scripts/csapi.cs
///<summary>
///Decodes a JPEG or PNG file.
///</summary>
Decodes a JPEG or PNG file.
Decodes a JPEG or PNG file .
public static Optional<Image> decode(Buffer buffer)
        {
            using (var ar = new Detail.AutoRelease())
            {
                var _return_value_ = default(Detail.OptionalOfImage);
                Detail.easyar_ImageHelper_decode(buffer.cdata, out _return_value_);
                return _return_value_.map(p => p.has_value ? Detail.Object_from_c<Image>(p.value, Detail.easyar_Image__typeName) : Optional<Image>.Empty);
            }
        }
public static Optional < Image > decode ( Buffer buffer ) { using ( var ar = new Detail . AutoRelease ( ) ) { var _return_value_ = default ( Detail . OptionalOfImage ) ; Detail . easyar_ImageHelper_decode ( buffer . cdata , out _return_value_ ) ; return _return_value_ . map ( p => p . has_value ? Detail . Object_from_c < Image > ( p . value , Detail . easyar_Image__typeName ) : Optional < Image > . Empty ) ; } }
Decodes a JPEG or PNG file.
Decodes a JPEG or PNG file .
buffer
Buffer