Mercury ( II ) iodide , also known as mercuric iodide , is a chemical compound . Its chemical formula is HgI2 . Mercury ( II ) iodide ( HgI2 ) is a chemical compound with an appearance of red-orange crystals .