I want to get rid of the border in my dialog box and make it look absolutly transparent, as if the image is on the top of screen.
try this:
mDialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));