If I understand correctly. You want to have an iPhone sized image use all of the background on an iPad.
There are ways to stretch the image, but I think you may be disappointed with the blurred or distorted results. I make individual images for iPhone, iPhone Retina (2X size of iPhone), and one for iPad. Then use your iPad check or isRetinaEnabled (on Cocos2D) to determine device and then which image to use.
However, maybe your image isn't really detailed, so here are some resizing options:
1) sprite.scale = 2.0; (scales the sprite to twice it's size)
2) sprite.scaleX = Value; (only scales the sprite in the x axis)
3) sprite.scaleY = Value; (only scales the sprite in the y axis)
Hope that helps!!
|