CGBitmapContext を手動で作成しました。
bitmapContext = CGBitmapContextCreate( myImageData, width, height, 8, 4 * width, colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big );
それにレイヤーを描画します:
[self.myView.layer renderInContext:bitmapContext];
ただし、Retina では、私のレイヤーは元のサイズの半分でしかレンダリングされません。
contentScaleFactor
でプロパティを設定してUIView
も何も変わりません。
これを行う正しい方法は何ですか?