determine color of pixel

Discussion in 'iOS Programming' started by swyitch, Dec 29, 2008.

  1. swyitch macrumors newbie

    Dec 28, 2008
    if im drawing a line on top of a UIImage with something like the following

    CGContextMoveToPoint(context, x1, y1);
    CGContextAddLineToPoint(context, x2, y2);

    is there an easy way to determine what color the pixel is?

    for example if my image is a solid blue box and draw the line into the box can i tell that the pixels are blue? (in quartz obviously)



Share This Page