I have a UIView with backgroundColor with colorWithPatternImage . As expected, a background image is drawn starting from the top left corner.
The problem occurs when I make renderInContext in this view: the background image is drawn starting from the left corner at the bottom . Everything else seems beautiful.
Here are the source and target images:

Here is the code:
Is there a way to save the image in the right direction, as in the src view?
5lava
source share