Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image Codename one library 3.3中的标签图像比例问题_Image_Scale_Codenameone - Fatal编程技术网

Image Codename one library 3.3中的标签图像比例问题

Image Codename one library 3.3中的标签图像比例问题,image,scale,codenameone,Image,Scale,Codenameone,我们正在使用以下代码从服务器下载图像并用标签显示: ImageDownloadService.createImageToStorage(IconSrc, label, IconSrc, new Dimension(width,height), ImageDownloadService.PRIORITY_NORMAL); 升级到最新的library 3.3后,图像不再正确缩放。它要么只显示图像的一个角,要么放大图像以填充整个空间 当我回到旧的库3.2时,这个问题就不会发生了 查看ImageDo

我们正在使用以下代码从服务器下载图像并用标签显示:

ImageDownloadService.createImageToStorage(IconSrc, label, IconSrc, 
new Dimension(width,height), ImageDownloadService.PRIORITY_NORMAL);
升级到最新的library 3.3后,图像不再正确缩放。它要么只显示图像的一个角,要么放大图像以填充整个空间


当我回到旧的库3.2时,这个问题就不会发生了

查看
ImageDownloadService
的代码,我不太明白这个功能在过去是如何工作的


我们并不真正在内部使用该类,建议开发人员迁移到更高级的类。我将尝试修复该回归,但我强烈建议您将代码迁移到较新的API。

非常感谢,我将尝试改用URLImage类。URLImage按预期工作,ImageDownloadService现在标记为已弃用。谢谢