GTK2 How to work with 32bpp image pixels? lazarus / 39-Graphics ---------------------------------------------------------------------- ALLIGATOR · 2025-06-09 18:08 Lazarus, Linux, LCL, GTK2 How can I make it normal? (Under Windows, a 10x10 pixel square, as expected) 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 procedure TForm1.FormCreate(Sender: TObject);var  pData: PUint32;  x, y: integer;begin  Image1.Width:=20;  Image1.Height:=20;   Image1.Picture.Bitmap.PixelFormat:=pf32bit;  Image1.Picture.Bitmap.Width:=20;  Image1.Picture.Bitmap.Height:=20;   Caption := TypInfo.GetEnumName(TypeInfo(TPixelFormat), Ord(Image1.Picture.Bitmap.PixelFormat));  Caption := Caption + ', ' + Image1.Picture.Bitmap.RawImage.Description.BitsPerPixel.ToString;   Image1.Picture.Bitmap.BeginUpdate();  for y:=0 to 9 do  begin    pData:=PUInt32(Image1.Picture.Bitmap.RawImage.GetLineStart(y));    for x:=0 to 9 do      PUInt32(pData)[x]:=$FFFFFFFF;  end;  Image1.Picture.Bitmap.EndUpdate();end;