A aynes Unregistered / Unconfirmed GUEST, unregistred user! 2010-11-03 #1 页面上有个image控件,显示一个JPG图片,JPG图片远远大于控件,控件上只能显示一部分图片,当鼠标在图片上单击,怎么得到JPG图片实标坐标(象素坐标)
E elefan Unregistered / Unconfirmed GUEST, unregistred user! 2010-11-03 #2 答: 1、将Image放入到ScrollBox1控件中 2、 procedure TForm1.Image1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);var c:Tcolor;begin c:=Image1.Canvas.Pixels[X,Y]; //坐标处象素值end;
答: 1、将Image放入到ScrollBox1控件中 2、 procedure TForm1.Image1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);var c:Tcolor;begin c:=Image1.Canvas.Pixels[X,Y]; //坐标处象素值end;