Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to create GraphiscImporter for data from clipboard?



Hi,

I have been searching the list archives, but cannot find how to get a GraphicsImporter for data from the clipboard rather than from file. For a file I do this:

err = GetGraphicsImporterForFile( &fileSpec, &importer );
if (err == noErr)
{
err = GraphicsImportCreateCGImage (importer, &cgImage, kGraphicsImportCreateCGImageUsingCurrentSettings );
CloseComponent(importer);
}


But, I cannot seem to find an equivalent call for GetGraphicsImporterForFile but then for scrap based data where I have a Handle or Pointer to the data and know the data type on the scrap. Probably the answer is obvious to every one but me, but any help would be appreciated.

I need this to allow the user to paste PICT, TIFF, etc. from the clipboard into my app.

Thanks,

david.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.