How to get the Image From QCView
How to get the Image From QCView
- Subject: How to get the Image From QCView
- From: Janakiram <email@hidden>
- Date: Wed, 2 Nov 2005 18:14:21 +0530
Hi,
I am using QCView to Display my Quartz Composition in a
Cocoa Application. I am able to embed the quartz file in a Cocoa
Application and also able to send the inputs from cocoa application.
I have placed the QCView in preferences panel and the NSImageView in
the Main Window. Now my requirement is to get the picture of the
QCView and place it in the NSImageView.To achieve this i tried the
following ways :
1) Tried to get the visible rectangle image by calling
dataInsidePDFRect: method , but this too didn't serve the purpose. It
gives an image with white color background.
2) Called the Copy Method on the QCView, but it gave an error
saying that qcview doesn't implement copy method.
3) Created an NSEvent for KeyDown of Cmd+C and sent to the
NSApplication ,NSWindow 's Method sendEvent: , but this didn't serve
the purpose.It beeps when i tried to call the sendEvent: method.
All the these ways didn't serve the purpose, will need to find
another way to solve this.
Please someone help me to solve this. Thanks in Advance.
Regards,
JanakiRam.
_______________________________________________
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