执行此代码后,image的picture中的width和height自动调节为OpenPictureDialog2.FileName的宽和高,需手工调回.(影响picture的canvas大小)
image2.Center:=true;
image2.picture.LoadFromFile(OpenPictureDialog2.FileName);
手动设置代码
image2.picture.Graphic.Width :=836;
image2.picture.Graphic.Height:=684;