Chosen Solution

when i switch on my camera ..it shows purple effects in display

This is unfortunately an incredibly common manufacturing defect. I argued with HTC support, and they repaired mine, even though it was out of warranty. However, this was 3 years ago, and it may be too late to get them to fix it. I suggest contacting HTC anyway and telling them that you know it is a common defect and they were repairing it. If you cannot get them to fix it, follow one of iFixit guides to change out the camera.