Pixmap erstellen
Verfasst: 5. Dezember 2005 11:36
Hallo,
kennt jemand einen Code für QT mit dem es möglich ist ein Verzeichnis mit Bildern (bmp, jpg und png) auszuwählen und aus diesen eine *.h erstellt. Die *.h soll dann in etwa so aussehen:
static const char const *bild1[] = {
"14 14 3 1",
" c black",
". c red",
"X c gray100",
" ",
" XX XXXXXX XX ",
" XXXXXX ",
" .....X ",
" XX .....X XX ",
" XX ..XXXX XX ",
" ..XXXX ",
" ..XXXX ",
" XX ..XXXX XX ",
" XX ..XXXX XX ",
" .....X ",
" .....X ",
" XX XXXXXX XX ",
" "
};
static const char const *bild2[] = {
"14 14 3 1",
" c black",
". c red",
"X c gray100",
" ",
" XX XXXXXX XX ",
" XXXXXX ",
" .....X ",
" XX .....X XX ",
" XX ..XXXX XX ",
" ..XXXX ",
" ..XXXX ",
" XX ..XXXX XX ",
" XX ..XXXX XX ",
" .....X ",
" .....X ",
" XX XXXXXX XX ",
" "
};
Gruß
Marco812
P.S.
Bild1 und Bild2 soll der Dateiname vom Bild sein, das Konvertiert wurde!
kennt jemand einen Code für QT mit dem es möglich ist ein Verzeichnis mit Bildern (bmp, jpg und png) auszuwählen und aus diesen eine *.h erstellt. Die *.h soll dann in etwa so aussehen:
static const char const *bild1[] = {
"14 14 3 1",
" c black",
". c red",
"X c gray100",
" ",
" XX XXXXXX XX ",
" XXXXXX ",
" .....X ",
" XX .....X XX ",
" XX ..XXXX XX ",
" ..XXXX ",
" ..XXXX ",
" XX ..XXXX XX ",
" XX ..XXXX XX ",
" .....X ",
" .....X ",
" XX XXXXXX XX ",
" "
};
static const char const *bild2[] = {
"14 14 3 1",
" c black",
". c red",
"X c gray100",
" ",
" XX XXXXXX XX ",
" XXXXXX ",
" .....X ",
" XX .....X XX ",
" XX ..XXXX XX ",
" ..XXXX ",
" ..XXXX ",
" XX ..XXXX XX ",
" XX ..XXXX XX ",
" .....X ",
" .....X ",
" XX XXXXXX XX ",
" "
};
Gruß
Marco812
P.S.
Bild1 und Bild2 soll der Dateiname vom Bild sein, das Konvertiert wurde!