An X-ray detector device includes in one example a switching portion and a photodetecting portion connected to the switching portion. The photodetecting portion includes a bottom electrode, a semiconductor area disposed above the bottom electrode, and a top electrode disposed above the semiconductor area. The area of the top electrode is smaller than the area of a top surface of the semiconductor area.一種X光檢測器裝置,其在一個示例中包括:一開關部分;以及一光檢測部分,連接到該開關部分。該光檢測部分包括:一底部電極;一半導體區域,設置在該底部電極上方;以及一頂部電極,設置在該半導體區域上方。該頂部電極的面積小於該半導體區域的一頂表面的面積。