Hi
Tbitmap has very limited support of image filetypes.
TPicture has much better support.
Also note your drawing straight to form canvas, this is not persitant, any form repainting and the imagewill vanish.
IIRC When a bitmap is created with width, height its filled with $FF ie white, delphi fills with $00
var myPic:TPicture;
myBMP:Tbitmap;
begin
try
myPic := TPicture.Create;
myPic.LoadFromFile(OpenDialog1.FileName);
try
myBMP := TBitmap.Create;
myBMP.Width := 100;
myBMP.Height :=100;
myBMP.Canvas.StretchDraw(Rect(0, 0, myBMP.Width, myBMP.Height), myPic.Graphic);
Canvas.Draw(10, 50, myBMP);
Canvas.Draw(10 + myBMP.Width + 20, 50, myPic.Graphic);
finally
myBMP.Free;
end;
finally
myPic.Free;
end;
end;