The "basic info" is block of data that assumes 32 bits per pixel.
The colorspace is CGColorSpaceCreateDeviceRGB
The "basic info from context" are the CGBitmapContextGet... calls.
The dataProvider is created with the block of data used to create
the context.
Have you verified that the values returned by CGBitmapContextGet...
are returning the same values you used to create the context? (seems
they should be... but maybe there is a bug there?)
It might help if you went ahead and expanded ...basic info...
and ...basic info from context... to actual code.
When theAlphaInfo is kCGImageAlphaPremultipliedFirst (or last),
drawing the image into a context with a size other than the image's
size will sometimes produce garbage on the screen, sometimes it
will produce results that suggest that the row bytes is wrong.
When theAlphaInfo is kCGImageAlphaNoneSkipLast (32bits per pixel),
the drawing lacks the alpha channel but it always draws right.
Where is the image buffer comming from? Is it a buffer you have
created yourself (e.g. with malloc) or is it potentially a QuickDraw
GWorld.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartz-dev/email@hidden