private boolean writePlaneConstant(int src, byte[] tmp, int height) {
		try	{
			for (int y = 0; y < height; y++)
			{
				tmp[y] = (byte)src;
			}
			dos.write(tmp);
			return true;
		}
		catch (Exception e)
		{
			e.printStackTrace();
			return false;
		}
	}