TBGRACanvas2D question from tutorial page 14 lazarus / 39-Graphics ---------------------------------------------------------------------- Adri · 2020-09-03 21:11 Hello all, When using the example from tutorial 14 (https://wiki.freepascal.org/BGRABitmap_tutorial_14) I stumble upon an error. When compiling the IDE mentiones an error [Identifier not found "TGBRACanvas2D"] regarding line 3 of the first, simple example where 'ctx: TBGRACanvas2D;' has been declared as a variable. (BGRABitmap and BGRABitmapTypes are both mentioned under the 'uses' declarations). When I remove this variable and replace every instance of 'ctx' with 'bmp.Canvas2' this first example does compile and run, but then I get into problems with the second, 'complex shapes' example and the third regarding 'translations' off course too. Is anybody able to shed some light on this behavior? Is it a setting in my IDE which understands that 'ctx' translates into 'bmp.Canvas2D'?        I cannot imagine / do not expect these examples are wrong in any way. Many thanks for a reaction. ---------------------------------------------------------------------- winni · 2020-09-03 21:20 Hi! You forgot: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses ........,BGRACanvas2D; Winni PS:  BGRA graphics has its own board in this forum: https://forum.lazarus.freepascal.org/index.php/board,46.0.html ---------------------------------------------------------------------- Adri · 2020-09-04 15:46 Winni: thanks, it works now!