It looks like you're new here. If you want to get involved, click one of these buttons!
print('ContentWidth:'..application:getContentWidth()) print('LogicalScaleX:'..application:getLogicalScaleX()) print('LogicalTranslateX:'..application:getLogicalTranslateX()) print('DeviceWidth:'..application:getDeviceWidth()) require 'ui' image=ImageView.new("images/top_01.png") addToRootView(image) --320*480 --ContentWidth:320 --LogicalScaleX:1 --LogicalTranslateX:0 --DeviceWidth:320 --640*960 --ContentWidth:320 --LogicalScaleX:1 --LogicalTranslateX:0 --DeviceWidth:320 --768*1024 --ContentWidth:320 --LogicalScaleX:2.4000000953674 --LogicalTranslateX:0 --DeviceWidth:768 --new ipad --ContentWidth:320 --LogicalScaleX:2.4000000953674 --LogicalTranslateX:0 --DeviceWidth:768 |
Comments
I test it without using uikit plugin, here's my code
http://www.nightspade.com
If you are simply displaying images and do not require the features of UIImageView of which there really are none at the moment. Please use the Gideros way of displaying them.
The UIKit plugin is not built to handle autoscaling of images at this time.
so I still need solve this problem.
helllo @techdojo ,@MikeHart,@Caroline ,any kind of help for me?
in addition ,I put top_01~ipad.png in project,but still not work.
But I haven't tried this myself.