Username:     
Password:     
             

Projects
RGBPicture to Header File 1.0
 
Converts any JPG oder BMP in an Header File (RGB)

Code size:10 Author:Ilm
Source files included:yes Version:1.0
Use circleOS:yes (circleOSversion) Creation date:2008-12-19 00:43:27
Hardware modification:no Modification date:2008-12-19 00:51:45
Based on the STM32 Primer:All
   
Downloads:2322 Views:27301
   
Vote:
Average ratings:2.91/5 (231 rates)

Download:    RGBPicture-to-Header-File-1.0.zip (118 KB)

Description:

The Primer Converter requires the Microsoft .Net Framework 2.0. You can convert JPG, BMP in a header file. The header file includes one color value (16Bit Hex) for every Pixel in the picture. Note: The Headerfiles becomes very large of you want to convert large pictures. A picture size of 50x50 pixels is the maximal size for an image (because the flash rom of the st32 is limited) You can draw a picture with the primer by adding following code into your programm:

/* Public variables ----------------------------------------------------------*/

static const u16 image[] = {
#include "picture.h"
};


/* Your Programm ------------------------------

DRAW_SetImage(image,39,39,50,50) ; // 50x50 Image Size