當前位置:編程學習大全網 - 網站源碼 - 求Delphi源代碼:圖像縮放

求Delphi源代碼:圖像縮放

{縮放顯示}

procedure TForm1.btn1Click(Sender: TObject);

var

tmpbmp:TBitmap;

begin

tmpbmp :=TBitmap.Create;

tmpbmp.Width :=45;//bmp.Width div 2;

tmpbmp.Height :=89;//bmp.Height div 2;

tmpbmp.pixelformat:=pf32bit;

//jpg.PixelFormat:=jf24bit;

tmpbmp.Canvas.StretchDraw(tmpbmp.Canvas.ClipRect,img1.Picture.Graphic );

//img2.Picture.Graphic

img2.Picture.Assign(tmpbmp);

img2.Update ;

end;

  • 上一篇:為什麽同花順同壹天的競價搶籌在不同時間的還不壹樣
  • 下一篇:傲世九重天怎麽玩 新手入門攻略
  • copyright 2024編程學習大全網