Hi,
I was adding scrollview to my app, and the images added to scrollview became ‘corrupted’ on the device, but was showing fine on the simulator. I tried PNG and JPG format, both were displayed corrupted on device.
The images display fine on device if I’m not adding them scrollview.
Here is the simple code that I used for testing:
local widget = require(“widget”)
local scrollView = widget.newScrollView({
top = 110,
left = 10,
width = 1000,
height = 200,
})
local image1 = display.newImageRect( “images/pg1bg.jpg”, 300, 255 )
image1.x = 300; image1.y = 200
local image2= display.newImageRect( “images/pg2bg.jpg”, 300, 255 )
image2.x = 500; image2.y = 200
local image3= display.newImageRect( “images/pg3bg.jpg”, 300, 255 )
image3.x = 700; image3.y = 200
scrollView:insert (image1)
scrollView:insert (image2)
scrollView:insert (image3)
Any idea what is wrong with it? It only happens on latest graphics2 build 2100.
Thank you.