L livestone Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-14 #1 将TBitmap中的图片按比例缩小,有什么现成的方法吗?
D dafuweng2003 Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-21 #2 Image1.Picture.Canvas.DrawRect(Canvas,SourceRect,DestRect);
W wtw Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-24 #3 Bitmap := TBitmap.Create; Bitmap.Width := a; //图象的宽和高,如国比原图小,则缩小。反之为放大。 Bitmap.Height := b; Bitmap.Canvas.StretchDraw(Bitmap.Canvas.ClipRect,image1.Picture.Graphic); Image1.Picture.Graphic := Bitmap; Image1.Invalidate;
Bitmap := TBitmap.Create; Bitmap.Width := a; //图象的宽和高,如国比原图小,则缩小。反之为放大。 Bitmap.Height := b; Bitmap.Canvas.StretchDraw(Bitmap.Canvas.ClipRect,image1.Picture.Graphic); Image1.Picture.Graphic := Bitmap; Image1.Invalidate;