Hi,
I have an app developed and published that captures the bounds of a display object in Graphics 1.0. I’m working in the migration to graphics 2.0 (daily build 2170) in order to be able to publish the app on the Apple Appstore, now that Facebook is a plugin.
Problem is that display.captureBounds is not working anymore with the app. This is the code I’m using to capture bounds (exactly the same that you provide in the examples):
local screenBounds = { xMin = 0, xMax = 100, yMin = 0, yMax = 100, } local miCaptura = display.captureBounds( screenBounds )
The result is always the same (from terminal):
Feb 20 14:46:31 MacBook-Air-de-Braulio.local Corona Simulator[3672] <Error>: CGImageCreate: unsupported image width: 2147483648.
Feb 20 14:46:31 MacBook-Air-de-Braulio.local Corona Simulator[3672] <Error>: Unsupported dimensions - 0 x, 0 y, 2147483648 width, 200 height, 8589934592 bytes-per-row
Feb 20 14:46:31 MacBook-Air-de-Braulio.local Corona Simulator[3672] <Error>: CGBitmapContextCreateWithData: failed to create delegate.
Feb 20 14:46:31 MacBook-Air-de-Braulio.local Corona Simulator[3672] <Error>: CGContextDrawImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 20 14:46:31 MacBook-Air-de-Braulio.local Corona Simulator[3672] <Error>: CGBitmapContextCreateImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Feb 20 14:46:31 MacBook-Air-de-Braulio.local Corona Simulator[3672] <Error>: ImageIO: CGImageDestinationAddImage image parameter is nil
Feb 20 14:46:31 MacBook-Air-de-Braulio.local Corona Simulator[3672] <Error>: ImageIO: CGImageDestinationFinalize image destination must have at least one image
This is really frustrating, because even with the daily build 2182 the problem still persists, and my client is waiting to update his app on the Appstore. (Wich is impossible because if I build the app with graphics 1.0 or any previous daily build than 2170, Apple will reject the app).
Any advice of what is happening here?
Thank you in advance