开发者

How to draw a picture on a TPanel

How can i d开发者_JAVA百科raw a picture on a TPanel? I also want to determine X,Y to define exact position on the Panel.


Here is a simple code

var
  eu:TImage;
begin
  eu:=TImage.Create(Panel1);
  eu.Parent:=Panel1;
  eu.Top:=30; // You can adjust the position by using these coordinates
  eu.Left:=50;
  eu.Picture.LoadFromFile('D:\usb.ico'); // Load any supported image
  eu.Visible:=True;
end;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜