IOGS / LEnsE / Logos GUI

Dependents:   PIMS_WDM_IHM

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IOGS_LEnsE_GUI.cpp Source File

IOGS_LEnsE_GUI.cpp

00001 #include "IOGS_LEnsE_GUI.hpp"
00002 
00003 
00004 void DrawImage(tImage image, LCD_DISCO_F746NG *lcd){
00005     int x, y, x_max, y_max;
00006     x_max = image.width;
00007     y_max = image.height;
00008     for(y = 0; y < y_max; y++){
00009         for(x = 0; x < x_max; x++){
00010             uint32_t col = 0xFF000000 + image.data[x + y*x_max];
00011             lcd->DrawPixel(x, y, col);
00012         }
00013     }    
00014 }
00015 
00016