I mean stretch the layer in one direction.
Although stretching layouts/layers is not supported (I wouldn't recommend it for it changes the look and the feel of your game entirely), Most objects support it (tiled-background and tilemaps excluded) and as such creating a function to do it should be entirely possible..