...
FBitmap: TImagingBitmap;
FImage: TSingleImage;
s: LongInt;
gbuff: Pointer;
...
FImage := TSingleImage.Create;
FBitmap := TImagingBitmap.Create;
Image.Picture.Graphic := FBitmap;
...
FImage.LoadFromFile('test.jpg');
Image.Picture.Graphic.Assign(FImage);
s := FImage.Size;
GetMem(gbuff, s);
{$ifdef Linux}
Move(FImage.Bits, gbuff, s);
{$endif}
{$ifdef Win32}
CopyMemory(gbuff, FImage.Bits, s);
{$endif}
Page created in 0.013 seconds with 19 queries.