S
samn
Unregistered / Unconfirmed
GUEST, unregistred user!
BackSprite:=TBackgroundSprite.Create(DXSpriteEngine.Engine);
with TBackgroundSprite(BackSprite) do
begin
SetMapSize(1,1);{设定背景显示样式为1×1}
Image := ImageList.Items.Find('background'); {载入背景图片}
Z := -2; {设定背景层次}
width:=dxdraw.Width;
height:=dxdraw.Height;
// Tile := True; {设定背景填充样式为平铺}
end;
我用这个方式载入了一张地图,如果这张图片的大小为100*100*16
请问怎么样才能使这张图片可以以全屏的形式显示??就是图片的宽度=DXDRAW的宽度
图片的高度=DXDRAW的高度呢?请高手不吝赐教!!!
with TBackgroundSprite(BackSprite) do
begin
SetMapSize(1,1);{设定背景显示样式为1×1}
Image := ImageList.Items.Find('background'); {载入背景图片}
Z := -2; {设定背景层次}
width:=dxdraw.Width;
height:=dxdraw.Height;
// Tile := True; {设定背景填充样式为平铺}
end;
我用这个方式载入了一张地图,如果这张图片的大小为100*100*16
请问怎么样才能使这张图片可以以全屏的形式显示??就是图片的宽度=DXDRAW的宽度
图片的高度=DXDRAW的高度呢?请高手不吝赐教!!!