Opening the Graphics Importer

Call the function GetGraphicsImporterFromDataRef() to open a graphics importer. This function takes three arguments. The first two arguments are the data reference and the data reference type you created by calling QTNewDataReferenceFromCFURL(). The last argument is the graphics importer GetGraphicsImporterFromDataRef() returns.

ComponentInstance fileImporter;
OSErr error;

error = GetGraphicsImporterForDataRef(dataRef, dataRefType,
        &fileImporter);

Next (Retrieving Information about the Texture)

Previous (Creating a Data Reference)