Getting form pixels lazarus / 39-Graphics ---------------------------------------------------------------------- user5 · 2019-12-24 20:30 I need to get the pixel colors of a form in a non-sequential, non- linear, almost random way. In other words, xy in one particular sampling might be 122,34 followed by another sampling in which xy might be 45,76 for example.     Would it be faster to get the screen pixels than to use form1.canvas.pixels[formx,formy] or is there another way? I realize that I may be stuck with form1.canvas.pixels[formx,formy] but I'm asking just on the possibility that there might be another way. The form will display constantly changing imagery. ---------------------------------------------------------------------- user5 · 2019-12-25 11:34 Well, I must be able to get the form pixel colors so I'll use the canvas method but I'll be able to make up some speed lost because of that by using a dynamic array to store the xy and other info that the canvas method uses instead of reading that info from a text file. I'll be using something like the code shown below. Merry Christmas!   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 type  companions = array[1..7] of string;  grouper = array of companions; begin item := grouper.create; setlength(item,arraysize);  //Various stuff here end;