MagicFoundation / Alcinoe

Alcinoe Component Library For Delphi. Full opengl video player, WebRTC delphi wrapper, native ios/android TEdit, Improuved firemonkey controls, Firebase cloud messaging, Android/ios facebook sdk login, Json/Bson Parser, ImageMagick wrapper, MongoDb client And much more
Apache License 2.0
996 stars 220 forks source link

Bitmap in TALRectangle #342

Closed gonzzzales closed 1 month ago

gonzzzales commented 1 month ago

Hi @Zeus64. Thanks a lot for your work! How can i use bitmap for TALRectangle in runtime? In previos version it was Fill.Kind := TBrushKind.Bitmap; Fill.Bitmap.WrapMode := TWrapMode.TileStretch; Fill.Bitmap.Bitmap.Assign(Bitmap1);

Now i see in demo, that i need to use resources, but i dont undestand, how.

Zeus64 commented 1 month ago

hello, yes bitmap in the *.fmx cause some performance probleme. so now all image must be in resource. for this it's simple:

gonzzzales commented 1 month ago

Is it possible to do it in runtime? in my application i have some images, that i have previosly downloaded from server. And now i need to use one of them, but it is dynamicly, i have only a path to the image.

Zeus64 commented 1 month ago

yes, so in such way in the resourcename, simply put the full path of your image

gonzzzales commented 1 month ago

Thanks, i will try!!!