Mailing Lists: Apple Mailing Lists

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

GraphicsImportDraw bug or feature?



Apple Team,

Is the following code supported? It seems like a bug that it doesn't...

GetGraphicsImporterForFile(&fsSpec, &graphicsImporter);

rgbBufferPtr = NewPtr(width * height * 3);

QTNewGWorldFromPtr( &gWorld,
k24RGBPixelFormat,
&rect,
nil,
nil,
nil,
rgbBufferPtr,
width * 3);

GraphicsImportSetGWorld(graphicsImporter, gWorld, nil);
GraphicsImportDraw(graphicsImporter);
CloseComponent(graphicsImporter);


(I trimmed the excess for readability, but you get the idea.)

It doesn't work for me, but if I change the gWorld to a k32ARGB (using QTNewGWorld), it works fine.

Thanks,
Rob
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.



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.