Michael Kuchnik / Mbed 2 deprecated uLCD_Multiscreen

Dependencies:   4DGL-uLCD-SE mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Blit.cpp Source File

Blit.cpp

00001 #include "Blit.h"
00002 Blit::Blit(int x, int y, int w, int h, int *colors) {
00003     this->x = x;
00004     this->y = y;
00005     this->w = w;
00006     this->h = h;
00007     this->colors = new int[w*h];
00008     for (int i = 0; i < w*h; i++) {
00009         this->colors[i] = colors[i];
00010     }
00011 }
00012 void Blit::execute(uLCD_4DGL* uLCD) {
00013     uLCD->BLIT(x,y,w,h,colors);
00014 }