Bitmap.PixelFormat - when it is going to be done? lazarus / 39-Graphics ---------------------------------------------------------------------- flasher86 · 2011-01-18 12:08 Hi, I am curious if anyone from developing team is still interested in completing TBitmap component. Coz, there is no method for converting pixel format. If you assign a value to PixelFormat it goes nowhere and do nothing. It's really bothering me because TImage behaves very strangly in terms of pixel format. For instance, when I load bitmap from JPEG it has 32bit pixel format which cannot be changed. But sometimes it's ok (24bit), dont know what it depends on though. or maybe its ready in nightly version? Coz it seems to be completely forgotten!! Last time I checked it was on todo list since forever... ---------------------------------------------------------------------- Marc · 2011-01-18 13:10 - Pixelformat isn't really needed internally by lazarus itself so it has a low priority. - It requires that the LCL supports (and can display) all formats, which is/was not the case on at least gtk1/gtk2 - The LCL graphics system is initially designed only to handle devicedepth formats only, so it required some rework to fully support all formats So yes, bit by bit parts are converted to support all formats ---------------------------------------------------------------------- felipemdc · 2011-01-18 14:52 I don't know what you are trying to do exactly, but usually this kind of thing can be done by using TLazIntfImage instead: http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Working_wi th_TLazIntfImage