エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
How to get UIImage from EAGLView?
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
How to get UIImage from EAGLView?
Here is a cleaned up version of Quakeboy's code. I tested it on iPad, and works just fine. The im... Here is a cleaned up version of Quakeboy's code. I tested it on iPad, and works just fine. The improvements include: works with any size EAGLView works with retina display (point scale 2) replaced nested loop with memcpy cleaned up memory leaks saves the UIImage in the photoalbum as a bonus. Use this as a method in your EAGLView: -(void)snapUIImage { int s = 1; UIScreen* screen = [ UIScreen mainSc