Hi list,

i use this method the create a snapshot image from a QC published image output:

NSString *time = [[[self getSnapshotsDirectory] 
stringByAppendingFormat:[[NSDate date] 
descriptionWithCalendarFormat:@"%Y-%m-%d-%H:%M:%S" timeZone:nil locale:nil]] 
stringByAppendingString:@".png"];

                
CGImageRef cgRef = (CGImageRef)[mainRenderer 
valueForOutputKey:@"outForMasterImageWet" ofType:@"CGImage"];
NSBitmapImageRep *bitmap = [[NSBitmapImageRep alloc] initWithCGImage:cgRef]; 

[[bitmap representationUsingType:NSPNGFileType properties: nil] 
writeToFile:time  atomically:NO];
[bitmap release];


working fine, but the image always brighter then the original. I tested with 
CIImage and NSImage too, but the same, wrong result.

Any idea what is wrong?

Thanks a lot,


.lov
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to