Drag and Drop from NSOpenGLView
Drag and Drop from NSOpenGLView
- Subject: Drag and Drop from NSOpenGLView
- From: "E. Wing" <email@hidden>
- Date: Thu, 6 Apr 2006 17:35:10 -0700
I'm trying to implement drag-and-drop from an NSOpenGLView which will
result in a screenshot being taken from the OpenGL view and dropped to
wherever. I seem to have gotten the basics covered with the
glReadPixels, NSPasteboard, and dragImage. However, I am having
trouble with some of the details.
First, when I start dragging the view, the image does appear. However,
my image is totally opaque. I noticed that with shipping Cocoa
applications, the images are semi-transparent. What is the
easiest/best way to faithfully reproduce this affect?
Second, I have specified my type as NSTIFFPboardType. I notice that if
I drag to my desktop, a TIFF gets created. But I would prefer that a
PNG (or maybe JPEG) be created instead. I know that the built-in
screen capture in OS X writes to PNG, so it seems like there should be
an easy way.
Thanks,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden