I would like to generate a RGB thumbnail of a composition using QCRenderer's createSnapshotImageOfType function but the function always returns a RGBA type image. I have verified it by checking bytesPerRow property of the return NSBitmapRep object and it always returns a multiple of 4
here is the code QCComposition* composition = [QCComposition compositionWithFile:[path stringByAppendingPathExtension:@"qtz"]]; CGColorSpaceRef colorSpace; colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB); QCRenderer* renderer = [[QCRenderer alloc] initOffScreenWithSize: NSMakeSize(153, 115) colorSpace:colorSpace composition:composition]; NSBitmapImageRep* bitmap = [renderer createSnapshotImageOfType: @"NSBitmapImageRep"]; Is there a direct way to generate RGB image instead of RGBA? or should I convert, Please help Nisar
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com