[英]Lazarus: stacking images, paint order
I want to design a simple game (lazarus 1.8.4) with an image as playing field and some figures (transparent images) over it, created on runtime. 我想设计一个简单的游戏(拉撒路1.8.4),在运行时创建一个图像作为游戏场并在其上放置一些图形(透明图像)。 So typically more than one images are at the same position.
因此,通常在同一位置有多个图像。 How can I make sure, that the figures are above the playing field?
我如何确定这些数字高于比赛场地?
TControl
has a function called BringToFront
which will move the Control to the first position in the Z-Axis (the opposing function would be SendToBack
). TControl
有一个称为函数BringToFront
这将控制移动到Z轴的第一位置(相对的功能将是SendToBack
)。 As TImage
is derived from TControl
the function applies to TImage
as well. 由于
TImage
是从TControl
派生的,因此该函数也适用于TImage
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.