Hello evrebody
I have this code take from the tutorial nº 2
procedure TForm1.FormPaint(Sender: TObject);
var stretched: TBGRABitmap;
begin
stretched := image.Resample(ClientWidth, ClientHeight) as TBGRABitmap;
stretched.Draw(Canvas,0,0,True);
stretched.Free;
//image.Draw(Canvas,0,0,True);
end;
but loose proportions.
I don't care if image does not cover the entire form in both width and length directions.
¿ Anyone know if there is a property similar to the property Stretch in the TImage class or a method that can do that ?
Thanks Christian.