如何在IDE中将图形分配给FMX TImage?

How to assign a graphic to an FMX TImage in the IDE?

在DelphiIDE中,如何将图形分配给TImage?

在 VCL 中,在对象检查器中,您使用 TImage 的 "Picture" 属性。但是在 FMX 中,我在对象检查器中看不到 "Picture" 或其他类似的东西("Bitmap"、"Graphic" 等)

请开恩。我在 Delphi VCL 方面有 20 多年的经验,但我是 FireMonkey 的新手!

您要查找的 属性 是 MultiResBitmapUsing Multi-Resolution Bitmaps 下的文档中介绍了它的用途。属于 TImage 的部分:

In TImage controls. TImage controls keep a TFixedMultiResBitmap multi-resolution bitmap in the MultiResBitmap property. TFixedMultiResBitmap is the descendant of TCustomMultiResBitmap. A TFixedMultiResBitmap multi-resolution bitmap can contain any number of bitmap items having different scales. On each device, TImage retrieves the most appropriate bitmap to display from the bitmap collection in the TFixedMultiResBitmap multi-resolution bitmap and refers to the obtained bitmap with the Bitmap property. The obtained bitmap depends on the device resolution and scales of bitmap items kept in the TFixedMultiResBitmap multi-resolution bitmap. If a multi-resolution bitmap does not contain a bitmap item having exactly the scale required by some particular screen, then FireMonkey automatically stretches or zooms out the bitmap item having the most appropriate scale. For information about how this bitmap is obtained, see Bitmap. Keep in mind that each bitmap item takes resources of the application's executable on all platforms (even if some bitmap item is never used on a particular platform).