开发者

How to draw a picture on a TPanel

开发者 https://www.devze.com 2023-03-29 11:58 出处:网络
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

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

精彩评论

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

关注公众号