-(void)function2:(CGFloat)positiveX:(CGFloat)positiveY
{
if (canDoPositiveX == YES)
{
//Checking in positive
if ([[NSString stringWithFormat:@"%@",[self colorOfPoint:CGPointMake(positiveX+1, positiveY)]] isEqualToString:@"UIDeviceRGBColorSpace 0 0 0 1"]==NO)
{
CGPoint point = CGPointMake(positiveX+1, positiveY);
//NSLog(@"X -- %f & Y -- %f",point.x,point.y);
[array addObject:[NSValue valueWithCGPoint:point]];
}
else
{
canDoPositiveX = NO;
}
}
if (canDoPositiveY == YES)
{
//Checking in positive