Android PanoramaGL不支持图像

Android PanoramaGL不支持图像,android,Android,我正在开发一个带有全景查看器的应用程序,我正在使用PanoramaGL。我所有的图片都是从网上下载的,每个图片的大小都是1200x1200。我试图调整图像的大小,但没有效果。有什么想法吗?尝试以下代码以调整其大小: PLSpherical2Panorama panorama = new PLSpherical2Panorama(); int heigh_pxl= output.getHeight(); int width_pxl= output.getWidth();

我正在开发一个带有全景查看器的应用程序,我正在使用PanoramaGL。我所有的图片都是从网上下载的,每个图片的大小都是1200x1200。我试图调整图像的大小,但没有效果。有什么想法吗?

尝试以下代码以调整其大小:

PLSpherical2Panorama panorama = new PLSpherical2Panorama();

    int heigh_pxl= output.getHeight();
    int width_pxl= output.getWidth();

    double size=Utils.sizeOf(output)/1048576;
    Log.d(TAG, "prima: "+size +" MB     "+width_pxl+"x"+heigh_pxl);

    if(width_pxl>=2048){
        width_pxl=2048;
        heigh_pxl=1024;
        output=Bitmap.createScaledBitmap(output, 2048, 1024, false);
        size=Utils.sizeOf(output)/1048576;
        Log.d(TAG, "dopo: "+size+" MB"+2048+"x"+1024);
    }else{
        width_pxl=Utils.nearestPOwerOf2(width_pxl);
        output=Bitmap.createScaledBitmap(output, width_pxl, width_pxl/2, false);
    }