Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
why the position so different? — Gideros Forum

why the position so different?

luyimoonluyimoon Member
edited December 2021 in General questions
--application:setLogicalDimensions(1136,640)
local w1 = application:getDeviceWidth()
local w2 = application:getDeviceHeight()
local w3 = application:getLogicalWidth()
local w4 = application:getLogicalHeight()
local w5 = application:getContentWidth()
local w6 = application:getContentHeight()
local s = tostring(w1).."--"..tostring(w2).."#"..tostring(w3).."--"..tostring(w4).."#"..tostring(w5).."--"..tostring(w6)

local texture1 = Texture.new("1.png")
local bitmap1 = Bitmap.new(texture1)
bitmap1:setAnchorPoint(0,0)
stage:addChild(bitmap1)
bitmap1:setPosition(0,0)

local lab = label.new(s,"simhei.ttf",20)
stage:addChild(lab)
lab:setPosition(300,500)








Comments

Sign In or Register to comment.