@yookue/ts-lang-utils
    Preparing search index...

    Function detectDimension

    • Read and detect the dimension of the given file

      Parameters

      • Optionalfile: File

        the file to inspect

      • Optionalresolve: (width?: number, height?: number) => void

        the callback function to execute when the file read success

      • Optionalreject: (ev?: ProgressEvent<FileReader> | ErrorEvent) => void

        the callback function to execute when the file read failure

      Returns void

      David Hsing