What does it mean ?
Basically, BGRABitmap can store an image that may not be drawable as such, not a bitmap object of the system. In order to keep track of changes, the function InvalidateBitmap is called whenever pixel data is modified. So when the bitmap object is requested, the library knows that it needs to be rebuilt.To sum up, the only time a regular user would call this function is after modifying pixels pointed to by Data / ScanLine directly and before drawing the bitmap or requesting the bitmap object.
So I commented out the "strange" line in the Scanline's code and everything stills works fine.
Hello,One can read, page https://lazarus.developpez.com/cours/bgrabitmap/#LVI, the line Code: Pascal [Select][+][-]image.InvalidateBitmap; // changé par accès directWhat does it mean ?Because using Ctrl-Click I've discovered, in unibitmap.inc, line 2249 :Code: Pascal [Select][+][-]procedure TCustomUniversalBitmap.InvalidateBitmap;begin //not linked to a bitmapend;So I commented out the "strange" line in the Scanline's code and everything stills works fine.Thanks for explanation.Best regards and have a nice day,And also thanks for that tuto, it's exactly what I need : fast, simple, working well, happiness !