This article describes the development of a novel integrated thermal and electromagnetic hybrid microoptoelectro mechanical system (MOEMS)-based scanning actuator. Determining the optical architecture and components used for scanning are significant points of the study. A metalens and a coded mask, both of which can be produced by microfabrication methods, are used in the optical part of the actuator. In this context, a metalens consisting of nanoholes was designed and fabricated as the first alternative. Second, a specific coded mask was designed and applied to the center of the MOEMS structure for obtaining spatial light modulation. Captured scene images including the coded mask are processed and reconstructed by using the compressive sensing image processing algorithms. Silicon-on-insulator (SOI) is the substrate of structure and deep reactive ion and wet etching methods were used to fabricate the integrated actuator. To increase the optical transmission, the optically transmissive coded mask zone was coated with antireflective coating at the midwave infrared band. The magnetic field for obtaining Lorentz force on the actuators was achieved by using the neodymium permanent magnet located beneath the structure.