2

私はUIWebViewを持っています。これには、次のような要素が含まれています。

<div class="bbib wbg rect" id="rect" style="-webkit-transform: perspective(100px) translate3d(6px, 63px, -48px) rotateY(-106deg); ">
</div>

このWebビューのスクリーンショットを撮る必要があります(フルサイズ、iPadの場合、1024x768)が、

UIGraphicsBeginImageContextWithOptions(self.frame.size, NO, 0.0);
[self.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return screenshot;

(このコードはUIViewカテゴリにあります)、画像上の要素は元の位置にあります(平行移動/回転なし)。それは良いことではありません。

どうすれば解決できますか?

4

0 に答える 0