nativescript-bitmap-factory软件包以解决nativescript错误

时间:2019-06-28 22:30:23

标签: angular nativescript

我试图使用nativescript-bitmap-factory软件包旋转图像,以下是我的代码。

const folder: Folder = <Folder> knownFolders.currentApp();
const folderPath: string = path.join(folder.path, "assets/bus_top_view.png");
const imageFromLocalFile: ImageSource = <ImageSource> fromFile(folderPath);
const bmp = BitmapFactory.create(imageFromLocalFile.width, imageFromLocalFile.height);

以下是我得到的错误。谢谢!

ERROR ReferenceError: BitmapFactory is not defined
JS: Error in downloadBitmap - java.io.FileNotFoundException: https://media.licdn.com/dms/image/C4E03AQEHsMNaRGdTXA/profile-displayphoto-shrink_200_200/0?e=1561593600&v=beta&t=zMPyj3GKvafgWD24AUEm5BuO_t7OG-6wJ3th9jQhEXo
JS: Error in downloadBitmap - java.io.FileNotFoundException: https://media.licdn.com/dms/image/C4E03AQEHsMNaRGdTXA/profile-displayphoto-shrink_200_200/0?e=1561593600&v=beta&t=zMPyj3GKvafgWD24AUEm5BuO_t7OG-6wJ3th9jQhEXo
JS: Error in downloadBitmap - java.io.FileNotFoundException: https://media.licdn.com/dms/image/C4E03AQEHsMNaRGdTXA/profile-displayphoto-shrink_200_200/0?e=1561593600&v=beta&t=zMPyj3GKvafgWD24AUEm5BuO_t7OG-6wJ3th9jQhEXo
JS: Error in downloadBitmap - java.ienter code hereo.FileNotFoundException: https://media.licdn.com/dms/image/C4E03AQEHsMNaRGdTXA/profile-displayphoto-shrink_200_200/0?e=1561593600&v=beta&t=zMPyj3GKvafgWD24AUEm5BuO_t7OG-6wJ3th9jQhEXo

0 个答案:

没有答案