tell me how to fill in the picture of the object NewRect NevImage
like this:
imgs1 = display.newImage("pic1.png") fn = display.newRect(sceneGroup, x, y, maxW, maxH) fn.fill = {type="image", ??????=imgs1 }
tell me how to fill in the picture of the object NewRect NevImage
like this:
imgs1 = display.newImage("pic1.png") fn = display.newRect(sceneGroup, x, y, maxW, maxH) fn.fill = {type="image", ??????=imgs1 }
Hi @sergeyarmn,
Please follow the code example here:
https://docs.coronalabs.com/api/type/BitmapPaint/index.html
You don’t fill the rectangle with an existing image object… you simply define which image resource you want to use for the fill.
Best regards,
Brent
Hi @sergeyarmn,
Please follow the code example here:
https://docs.coronalabs.com/api/type/BitmapPaint/index.html
You don’t fill the rectangle with an existing image object… you simply define which image resource you want to use for the fill.
Best regards,
Brent