我试图使用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