Discussion:
[Lazarus] LCL TImageList method wish
AlexeyT via Lazarus
2018-04-26 09:00:56 UTC
Permalink
Ondrej,
this patch
https://github.com/graemeg/lazarus/commit/0ff493e8cf2b6e4f1c971561db87d2579396eacd
makes the same for 4 WS'es: it gets bitmap from imagelist for some
resolution.
Wish: make TImageList.GetBitmapForResulution and make this patch simpler.
--
Regards,
Alexey

--
Ondrej Pokorny via Lazarus
2018-04-26 18:05:14 UTC
Permalink
Post by AlexeyT via Lazarus
this patch
https://github.com/graemeg/lazarus/commit/0ff493e8cf2b6e4f1c971561db87d2579396eacd
makes the same for 4 WS'es: it gets bitmap from imagelist for some
resolution.
Wish: make TImageList.GetBitmapForResulution and make this patch simpler.
You mean you want to simplify 2 calls:
AValue.GetImageIndexAndEffect
AImageRes.GetBitmap

into one call:
AValue.GetBitmap

?

OK, if you feel it is really worth it, feel free to send a patch.

+ You will need to keep GetImageIndexAndEffect anyway.

Ondrej
--

Loading...