White drawings have black outlines around them

Anyone seen this? I draw using white color into a graphics context. I turn it into a UIImage.

I then draw that into a PDF.

The white drawings have black outlines around them. I have reported this and also asked for DTS help.


That was December 10th of last year. I never had DTS take so long to reply.

Thanks for any help.


r, g, b = 255.0

la = 1.0

CGContextSetRGBStrokeColor(context, r, g, b, la); //values for R, G, B, and Alpha

CGContextSetBlendMode(context, kCGBlendModeNormal);

// where ls is a line value for width

CGContextSetLineWidth(context, ls); // for size


I draw from a start point to end point

CGContextMoveToPoint

CGContextAddLineToPoint


CGContextStrokePath

UIImage *image = UIGraphicsGetImageFromCurrentImageContext();


---- into PDF


CGImageRef imageRef = [image CGImage];

CGContextDrawImage(writeContext, theAreaRect, imageRef);

Replies

Apple replied that it's a bug. No work around right now.