2
votes

Converting to grayscale with TBitmap.ScanLine property
Pawel Glowacki
– In my previous post "Boian’s TBitmap Visualizer and converting to grayscale" I have described an algorithm for converting arbitrary TBitmap instances to gray using a selected formula. The problem is with the performance of the code that actually changes the color of each pixel. Accessing color information is done via TBitmap.Pixels property, which is a two-dimensional array of TColor values. Since Delphi 3 there is a more efficient way of manipulating color information - using TBitmap.Scanline property. It is of pointer type and provides direct access to memory where color information is ...
Statistics
|
Visits by Source |
User Actions |