Mattias Gaertner rašė:
The LCL TBitmap has no ScanLine property, because under Delphi its
only purpose is fast direct access and this is not possible under all
LCL platforms.
But there is an alternative, which can be used in most cases.
See lazarus/examples/scanline/.
In file "unit.pas" of that example is written:
// fill line with gray
for i:=0 to (ImgWidth*4)-1 do
PByte(LineStart)[i]:=0; // set red, green and blue to 128 (i.e. gray)
I think in comments and in other places should be word "black" not
"gray" or value should be "PByte...:=128" not "0"...
--
Valdas Jankūnas
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives