LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Copy bitmap into framebuffer (https://www.linuxquestions.org/questions/linux-software-2/copy-bitmap-into-framebuffer-538705/)

bertramgeck 03-19-2007 08:15 AM

Copy bitmap into framebuffer
 
HI,

I have an embedded device with a franmebuffer.

With
Code:

fbp = (char *)mmap(0, screensize, PROT_READ | PROT_WRITE, MAP_SHARED,fbfd, 0);
*(fbp + 1) = 100

I map the memory to the framebuffer and with that can write a pixel onto the framebuffer and it will be displayed onto the screen of the device.
Now I want to display a whole picture from /tmp/bitmap.bmp to the device.
Is there already a c- oder c++-function existing, I could use to copy the picture from i.e. 320x240 bits to the framebuffer-memory ?

Best regards
Bertram


All times are GMT -5. The time now is 11:43 AM.