Recent

Author Topic: Bitmap.PixelFormat - when it is going to be done?  (Read 8501 times)

flasher86

  • New Member
  • *
  • Posts: 15
Bitmap.PixelFormat - when it is going to be done?
« on: January 18, 2011, 01:08:12 pm »
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...
« Last Edit: January 18, 2011, 01:10:02 pm by flasher86 »

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2582
Re: Bitmap.PixelFormat - when it is going to be done?
« Reply #1 on: January 18, 2011, 02:10:11 pm »
- 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
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Bitmap.PixelFormat - when it is going to be done?
« Reply #2 on: January 18, 2011, 03:52:36 pm »
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_with_TLazIntfImage

 

TinyPortal © 2005-2018