--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
otherwise you can get the position of top left etc. corners using this function:
http://wiki.giderosmobile.com/index.php/Application:getLogicalBounds
Fragmenter - animated loop machine and IKONOMIKON - the memory game