public static void AA(int x1, int y1, int x2, int y2, PCPC c, Graphics g)
	{
		Color cr, clr = Color.BLACK;

		for (int y = y1; y <= y2; y++)
		{
			for (int x = x1; x <= x2; x++)
			{
				if (c.getPixelColor(x, y).equals(clr))
				{
					cr = c.getPixelColor(x, y - 1);
					if (!cr.equals(clr))
					{
						g.setColor(new Color(cr.getRed() - 50, cr.getGreen() - 50, cr.getBlue() - 50));
						g.drawLine(x, y - 1, x, y - 1);
					}

					cr = c.getPixelColor(x, y + 1);
					if (!cr.equals(clr))
					{
						g.setColor(new Color(cr.getRed() - 50, cr.getGreen() - 50, cr.getBlue() - 50));
						g.drawLine(x, y + 1, x, y + 1);
					}

					cr = c.getPixelColor(x - 1, y);
					if (!cr.equals(clr))
					{
						g.setColor(new Color(cr.getRed() - 50, cr.getGreen() - 50, cr.getBlue() - 50));
						g.drawLine(x - 1, y, x - 1, y);
					}

					cr = c.getPixelColor(x + 1, y);
					if (!cr.equals(clr))
					{
						g.setColor(new Color(cr.getRed() - 50, cr.getGreen() - 50, cr.getBlue() - 50));
						g.drawLine(x + 1, y, x + 1, y);
					}
				}
			}
		}
	}