- Код: Выделить всё
ExtBitmap := Bitmaps.GetBitmap(i);
if fStretch then
Bitmap.Canvas.stretchdraw(Rect(0, 0, Self.Width, Self.Height), ExtBitmap)
else
try
with Bitmap.Canvas do begin
Brush.Color := ExtBitmap.Canvas.Pixels[0, 0];
Brush.Style := bsSolid;
FillRect(TRect(Rect(0, 0, Bitmap.Width, Bitmap.Height)));
draw(0, 0, ExtBitmap);
end;
except
Bitmap.Canvas.stretchdraw(Rect(0, 0, Self.Width, Self.Height), ExtBitmap);
end;
На строке
- Код: Выделить всё
Bitmap.Canvas.stretchdraw(Rect(0, 0, Self.Width, Self.Height), ExtBitmap)
- Код: Выделить всё
aviwritter.pas(551,50) Fatal: Syntax error, ")" expected but "," found
PS: LAzarus 9.30.4 , Win 7 Pro.
Добавлено спустя 17 минут 2 секунды:
PPS: Ну а поменяв местами в Uses Graphics и windows, поставив первым - Graphics - заимел кучу ошибок плана aviwritter.pas(442,25) Error: Incompatible types: got "TBitmap" expected "BITMAP"