This also changes UIView+Render to only render the layer. The current code actually renders the image twice, once via drawHierarchy and once via layer.render - if there is transparency involved, having these two images drawn on top of each other causes render glitches.
layer.render seems to always work while drawHierarchy only works when a UIWindow/host application is present.
Unfortunately, this might change the rendered image - no visible changes, but the values will differ +- 2 or 3. There seems to be some subtle difference in rendering depending on the API you use. So users who have generated test images before might have to regenerate them :(
Fixes issue #30
This also changes UIView+Render to only render the layer. The current code actually renders the image twice, once via drawHierarchy and once via layer.render - if there is transparency involved, having these two images drawn on top of each other causes render glitches.
layer.render seems to always work while drawHierarchy only works when a UIWindow/host application is present.
Unfortunately, this might change the rendered image - no visible changes, but the values will differ +- 2 or 3. There seems to be some subtle difference in rendering depending on the API you use. So users who have generated test images before might have to regenerate them :(