1,185
社区成员




const
IWidth = 300*120;
IHeight = 300*4;
var
bmp1, bmp2 : TBitmap;
begin
Caption := 'Creating!';
bmp1 := TBitmap.Create;
try
bmp1.PixelFormat := pf24bit;
bmp1.Width := IWidth;
bmp1.Height := IHeight;
bmp2 := TBitmap.Create;
try
bmp2.Assign(bmp1);
Caption := 'done';
finally
bmp2.Free;
end;
finally
bmp1.Free;
end;
end;
const
IWidth = 1024*20;
IHeight = 1024*20;
var
bmp1, bmp2 : TBitmap;
begin
Caption := 'creating!';
bmp1 := TBitmap.Create;
try
bmp1.PixelFormat := pf24bit;
bmp1.Width := IWidth;
bmp1.Height := IHeight;
bmp2 := TBitmap.Create;
try
bmp2.Assign(bmp1);
Caption := 'done';
finally
bmp2.Free;
end;
finally
bmp1.Free;
end;
end;