我创建了6个堆栈图像,并将每个图像的blendlevel设置为0.我将此代码输入堆栈:
on preopenstack
set the fullscreenmode of this stack to "exactFit"
if environment() is "mobile" then
set the acceleratedRendering of this stack to true
else
set the acceleratedRendering of this stack to false
end if
end preopenstack
on openstack
if the platform contains "iphone" then
set the compositorType of this stack to "Static OpenGL"
end if
end openstack
我将此代码输入我的卡片中:
on fadeControl nImg,bLV
lock screen
set the blendLevel of img nImg to bLV
subtract 5 from bLV
if bLV > 0 then
send "fadeControl" && (nImg) & "," & bLV & ",5" to me in 0 milliseconds
else
send "fadeControl" && (nImg+1) & "," & bLV & ",5" to me in 0 milliseconds
end if
unlock screen
end fadeControl
当我在桌面上测试时很顺利。但是当我在iPad上测试时,Retina并不顺畅。
我该如何解决这个问题?我的livecode版本是6.6.2(稳定)。
答案 0 :(得分:0)
尝试使用视觉效果。
on fadeControl nImg
lock screen for visual effect in rect (the rect of img nImg)
hide img nImg
unlock screen with visual effect dissolve very fast
end fadeControl