Recent

Author Topic: TBitmap.ScanLine  (Read 6906 times)

Anonymous

  • Guest
TBitmap.ScanLine
« on: June 03, 2004, 09:03:31 pm »
Why missing?  :shock:

The suggested alternative is a completely different creature. Would be preferable to wrap a DIB mechanism.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2649
TBitmap.ScanLine
« Reply #1 on: June 09, 2004, 06:23:41 pm »
What alternative ?

And what do you mean by "Would be preferable to wrap a DIB mechanism"
Can you be more specific what you had in mind ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

JopieK

  • New Member
  • *
  • Posts: 15
    • http://www.legotrein.tk
TBitmap.ScanLine
« Reply #2 on: May 10, 2005, 02:06:54 pm »
well,  I can imagine that he wants to use the TBitmap.ScanLine property. It is almost impossible imho to manipulate images without such a features.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2649
TBitmap.ScanLine
« Reply #3 on: May 11, 2005, 12:30:58 pm »
This is discudssed before, but in short:
TBitmap.Scanline is not cross platform (a win32 specific feature) so to be able to support it, we have to mimick the behaviour, which will lead to bad performance (and performance was why you wanted to use it in the first place)
As alternative you can use the far more powerfull TLazIntfImage. There you have raw access to every pixel at RGBA format.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018