I was pulling my hair out trying to figure out a capture issue when it occurred to me to check it in the daily. Sure enough it works fine in the daily, but not Graphics 2.0 beta.
local d = display.newImage( "gfx/photo.jpg" ) local xScale = display.contentWidth / d.contentWidth local yScale = display.contentHeight / d.contentHeight local scale = math.max( xScale, yScale ) d:scale( scale, scale ) d.x = display.contentCenterX d.y = display.contentCenterY local _c = display.captureBounds( d.contentBounds, true )
zoomEven : Graphics 2.0
Picture 1.png 603.44KB 83 downloads
zoomEven : Build 2013.1233
Now, interestingly enough, the file that saves from the G2.0 version is a much nicer resolution ( I scaled the attached image 50% so I could upload it to the forum ) but it is being visually "cropped" as shown.
The other image from the daily build comes out at a much lower resolution, but outputs correctly.
What would be great is that nice high res from the G2 version, but fitting correctly.
Any suggestions? Or is this something that needs to be addressed?
Thanks in advance.