A study of magnetic domains in thin films from FM and AFM interactions