Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
openGLのViewのBitmap保存方法
631 views
Skip to first unread message
roku
unread,
Mar 6, 2011, 12:44:20 AM
3/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
こんにちは。一か月ほど前からAndroid開発を始めました清水と申します。
画面に表示しているGLSurfaceViewをbmp保存したいと思います。
glview.setDrawingCacheEnabled(true);
Bitmap glMap = glView.getDrawingCache();
としてbitmapを取得してバイトデータに変換したのちにbmpファイルに落としています。
するとbmpファイルは真っ黒で保存されてしまいます。
(Bitmap→バイトデータ→ファイル保存 の手順はカメラで撮ったデータの保存で成功していますので問題ないはずです。)
何か解決方法をご存知の方がいらっしゃいましたら
ご教授のほどよろしくお願いいたします。
Kenichi Takahashi
unread,
Mar 6, 2011, 5:50:23 AM
3/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
高橋@頓智ドットです。
OpenGLで描画した内容は
glReadPixels を使って直接フレームバッファから読み取る必要があります。
取り急ぎの短い回答ですみません。
> --
> このメールは Google グループのグループ「日本Androidの会」の登録者に送られています。
> このグループに投稿するには、
android-g...@googlegroups.com
にメールを送信してください。
> このグループから退会するには、
android-group-j...@googlegroups.com
にメールを送信してください。
> 詳細については、
http://groups.google.com/group/android-group-japan?hl=ja
からこのグループにアクセスしてください。
>
roku
unread,
Mar 6, 2011, 9:06:22 AM
3/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
高橋さん
ご回答ありがとうございました!!
glReadPixelsでデータは取れました。
ですが、バイトデータをいったんbmpファイルに変換したいためまた悩み中です。
(写真のデータとopenGLのデータを合わせて保存したいので)
清水
On 3月6日, 午後7:50, Kenichi Takahashi <
ken1.takaha...@gmail.com
> wrote:
Reply all
Reply to author
Forward
0 new messages