1 Reply
      Latest reply on Feb 11, 2019 10:28 AM by randomizer
      randomizer Level 1 Level 1 (0 points)

        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





        UIImage *image  = UIGraphicsGetImageFromCurrentImageContext();


        ---- into PDF


        CGImageRef imageRef = [image CGImage];

        CGContextDrawImage(writeContext, theAreaRect, imageRef);