Ignore:
Timestamp:
Mar 19, 2011, 12:26:06 PM (13 years ago)
Author:
george
Message:
  • Fixed: Displaying BGRABitmap on Linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/UDrawMethod.pas

    r206 r210  
    133133    P := PInteger(BGRABitmap.ScanLine[Y]);
    134134    for X := 0 to Size.X - 1 do begin
    135       P^ := NoSwapBRComponent(Pixels[X, Y]);
     135      P^ := NoSwapBRComponent(Pixels[X, Y]) or $ff000000;
    136136      (*P^.red := Pixels[X, Y];
    137137      P^.green := Pixels[X, Y];
     
    141141    end;
    142142  end;
    143   //BGRABitmap.InvalidateBitmap; // changed by direct access
     143  BGRABitmap.InvalidateBitmap; // changed by direct access
    144144  //BGRABitmap.Draw(Bitmap.Canvas, 0, 0, True);
    145145  BGRABitmap.Draw(PaintBox.Canvas, 0, 0, True);
Note: See TracChangeset for help on using the changeset viewer.