Groups
Sign in
Groups
cocoa-dev-japan
Conversations
About
Send feedback
Help
現在のマウスカーソル画像の取得
37 views
Skip to first unread message
おおもり
unread,
Dec 29, 2007, 8:11:52 AM
12/29/07
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 cocoa-dev-japan
興味本位で動画スクリーンキャプチャアプリを作っていたらはまってしまいました。
[NSEvent mouseLocation]で、現在のマウスの位置は取れるのですが、どんなカーソル画像が表示されているかがわかりません。
アクセシビリティ関連でありそうだと思ったのですが見つけられていません。
ご存知の方いらっしゃいませんでしょうか。
おおもり
unread,
Jan 4, 2008, 4:43:37 AM
1/4/08
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 cocoa-dev-japan
解決しました。
QuickDraw以外ではCoreGraphicsのプライベート関数を使うしかなさそうです。
CGSGetGlobalCursorDataSize( );
CGSGetGlobalCursorData( )
でCGImageRefが得られるので、NSBitmapRepを作ることで、アルファ付きの画像が得られます。
Reply all
Reply to author
Forward
0 new messages