在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
procedure TDR_QM_ZP_Form.btn_FDClick(Sender: TObject); //图像放大 begin my_int1 := Trunc( my_int1 * 1.1); my_int2 := Trunc( my_int2 * 1.1); FL_ZoomInOut( Original_Bmp, //原始图 image1.Picture.Bitmap, //输出图 my_int1, //输出图宽 My_int2 //输出图高 ) ; //图形二值化 Image_EZH( Image1.Picture.Bitmap ); Original_Bmp1.Assign( Image1.Picture.Bitmap ); ScrollBox1.HorzScrollBar.Range := Original_Bmp1.Width; zzz := (Original_Bmp1.Width - ScrollBox1.Width) div 2; if zzz > 0 then begin ScrollBox1.HorzScrollBar.Position := zzz; end else begin ScrollBox1.HorzScrollBar.Position := 0; end; ScrollBox1.VertScrollBar.Range := Original_Bmp1.Height; zzz := (Original_Bmp1.Height - ScrollBox1.Height) div 2; if zzz > 0 then begin ScrollBox1.VertScrollBar.Position := zzz; end else begin ScrollBox1.VertScrollBar.Position := 0; end; end; 改变系数的大小(1.1) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论