【问题标题】:Why images can not be seen in TImage on some devices?为什么在某些设备上的 TImage 中看不到图像?
【发布时间】:2014-05-23 15:25:41
【问题描述】:

我在我的应用程序中使用 TImage(在 Delphi XE5 中,FMX)。但是在某些设备上除了 TImage 内容之外,所有组件都可以看到。
我尝试以位图或 jpeg 格式显示任何图片。我在 DesignTime 的 MultiResBitmap 属性中设置位图或在运行时加载 jpeg 图像。

例如在设备上:Samsung Galaxy S Dous2 Android 2.3.6、HTC ONE M8 Android 4.4、Huawei Tab 7 android 4.3、Huawei P6 Android 4.2.2一个黑色矩形。在其他设备上 TImage 工作正常。

【问题讨论】:

  • 你(想)在你的 TImage 中显示什么?
  • 我使用 TImage 以位图或 jpeg 格式显示任何图片。我在 DesignTime 的 MultiResBitmap 属性中设置位图或在运行时加载 jpeg 图像。无论如何在某些设备上看到的 TImage 内容和在某些设备上看不到!!!!!!

标签: android delphi firemonkey delphi-xe5


【解决方案1】:

您应该首先使用Editor 制作一个多分辨率位图

然后加载Multi-Resolution Bitmap

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-12-22
    • 2016-01-25
    • 1970-01-01
    • 1970-01-01
    • 2020-01-03
    • 2016-10-08
    • 1970-01-01
    • 2016-09-15
    相关资源
    最近更新 更多