I manually created a CGBitmapContext:
bitmapContext = CGBitmapContextCreate( myImageData, width, height, 8, 4 * width, colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big );
And draw a layer for it:
[self.myView.layer renderInContext:bitmapContext]
However, on Retina, my layer only displays half of its original size.
Setting the contentScaleFactor property in a UIView does not change anything.
What is the right way to do this?
source share