怎样缩小一个bmp图形而失真最少。我达到windows的画图程序的那样就可以了。

解决方案 »

  1.   

    楼上的写错了吧,是StretchBlt()
      

  2.   

    有点麻烦,如果想简单用TCanvas.StretchDraw(); 很简单:procedure StretchDraw(const Rect: TRect; Graphic: TGraphic );
      

  3.   

    DescriptionCall StretchDraw to draw a graphic on the canvas so that the image fits in the specified rectangle. StretchDraw calls the Draw method of the graphic. The graphic object determines how to fit into the rectangle. This may involve changing magnification and/or aspect ratio.To render the graphic in its natural size, use the Draw method, instead.Graphics can be bitmaps, icons, or metafiles. If the graphic is a TBitmap object, the bitmap is rendered using the value of CopyMode.
      

  4.   

    procedure StretchDraw(const Rect: TRect; Graphic: TGraphic );这个函数压缩的效果没有windows带的画图程序的缩放好,我试过得。差的很远。