1

voila quand je converti un BMP par exemple de 24 bits qui fait 32*32 et que je le convertie en .c
et que je le fasse afficher sur ma petite GP et bien il y a des couleurs bizarre a la place...
j'aimerais comprendre si quelqu'un a la solution
sinon je cherche un autre convertisseur mais pas GP32converter car il ne se lance pas sur mon pc...
(je suis un GROS NOOB^^)
avatar
pixel and 3D graphics: www.madpxl.com

seeking iPhone developer, contact me !


2

-

3

par exemple je le met en 256 couleurs et kan je le convertie avec tin tool g le meme pb...
je vous met comment je l'affiche :
bien avant je déclare le gfx ("mor") :

extern const unsigned int mor[32][8];

puis apres je veut l'afficher comme un fond d'ecran :

for(decalagex=0;decalagex<320;decalagex=decalagex+32)
{
for(decalagey=0;decalagey<240;decalagey=decalagey+32)
{
GpBitBlt(NULL,&gpDraw[nflip],decalagex,decalagey,32,32,(unsigned char*)mor,0,0,32,32);
}
}
mais je c que c la conversion qui foire car avec un BMP convertie par brain ça marche nikel^^
avatar
pixel and 3D graphics: www.madpxl.com

seeking iPhone developer, contact me !


4

sinon comment on se sert de GPdevUtil pour convertir une image ????????
avatar
pixel and 3D graphics: www.madpxl.com

seeking iPhone developer, contact me !


5

-

6

-

7

ben sur le bmp convertie en .c de brain il n'y a pas de palette et il est en 256 couleurs^^
avatar
pixel and 3D graphics: www.madpxl.com

seeking iPhone developer, contact me !


8

-

9

a...bon admetton que je fasse un bmp en 256 couleur de taille 32*32 du nom de "mor" que jele convertisse avec tiny tool.
j'obtiens un joli mor.c, je l'ouvre avec le bloc note et je regarde ce qu'il y a écrit :

/*
Auto généré par tiny tool gp32 converter
Jul 2 2003 à 16:42:43
*/

#include "mor.h"


unsigned short mor[1024] = {
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8631, 0x8631, 0x8631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0x8631, 0x8431, 0xC621, 0xC631, 0xC631, 0xC621, 0xC621, 0x8421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8421, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0x8421, 0xC631, 0xC631, 0xC631, 0xC631, 0x8431, 0xC421, 0xC621, 0xC621, 0xC621, 0x8421, 0x8631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8421, 0xC631, 0xC631, 0xC631, 0xC631, 0x8631, 0xC421, 0xC631, 0xC631, 0xC631, 0xC631,
0x8431, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8421, 0x8631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8631,
0x8631, 0xC421, 0xC631, 0xC631, 0xC631, 0xC631, 0x8431, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC621, 0x8431, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC621, 0xC621, 0xC421, 0xC431, 0xC431, 0xC431, 0xC621, 0xC621, 0xC621, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0x8421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC621, 0x8431, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC421, 0xC431, 0x8631, 0x8631, 0x8631, 0xC631,
0x8631, 0x8631, 0x8631, 0x8431, 0xC421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x1E31, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0x8631, 0xC431, 0xC431, 0x8431, 0x8631, 0x8631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0x0401, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8431, 0xC421, 0xC631, 0xC631, 0xC631, 0xC631, 0x8631, 0xC421,
0xC631, 0xC631, 0xC631, 0xC631, 0x8631, 0x8631, 0x8631, 0x8631, 0x8631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x0801, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0x8631, 0xC421, 0xC631, 0xC631, 0xC631, 0xC631, 0x8631, 0xC421, 0xC631, 0xC631, 0xC631, 0xC631, 0x8421, 0xC621, 0xC631,
0xC631, 0xC631, 0xC421, 0x8431, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x3DC1, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8631, 0xC421, 0xC631,
0xC631, 0xC631, 0xC631, 0x8431, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631, 0x8421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC421, 0x8431, 0x8631,
0x8631, 0xC631, 0xC631, 0xC631, 0x4007, 0x8631, 0x8631, 0x8631, 0xC431, 0xC431, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631, 0x8421, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0x8421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC621, 0xC621, 0xC621, 0xC621, 0x0201, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC421,
0x8631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x5013, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC621, 0xC621, 0xC431, 0xC431, 0xC431, 0x8631, 0xC431, 0xC431, 0xC431, 0xC421, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x0281, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x5815,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x02C1, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x5015, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x00F1,
0x0201, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8631, 0xC431, 0xC621, 0xC621, 0xC421, 0xC431, 0x8431, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x0021, 0x5815, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0x8421, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631, 0x8431, 0xC621, 0xC631, 0xC631, 0xC631, 0x8631, 0x8431, 0xC431, 0xC431, 0xC431, 0x8431, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x0041, 0x0281, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8431, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631,
0x8431, 0xC621, 0xC631, 0xC631, 0xC631, 0x8631, 0xC421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC621, 0x8421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0x19EF, 0x300B, 0xC631, 0xC631, 0xC631, 0xC631, 0x8431, 0xC621, 0xC631, 0xC631, 0xC631, 0x8631, 0xC421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC421,
0x8631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC621, 0xC421, 0xC431, 0x8431, 0x8631, 0x8631, 0x8631, 0x0201, 0x0141, 0xC431, 0xC431, 0xC621, 0xC621,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8421, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC421, 0x8631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x4811, 0x280D, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8421,
0x8631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x8621, 0x8431, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0x0281, 0x0181, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC621, 0xC621, 0xC621, 0xC431, 0xC621,
0xC621, 0xC621, 0xC621, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x5015, 0x280D, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x02C1, 0x0181, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0x5017, 0x300D, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631,
0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0xC631, 0x0281, 0x01C1};


j'obtien aussi un mor.h:
#ifndef _HEADER_MOR_H
#define _HEADER_MOR_H

/*
Auto généré par tiny tool gp32 converter
Jul 2 2003 à 16:42:43
*/

/* rotation de l'image pour correspondre à GPLib */
/* alignement à 4 de la hauteur de l'image pour correspondre à GPLib */
/* le highlight des couleurs est forcé à 1 */

#define MOR_WIDTH 32
#define MOR_HEIGHT 32
extern unsigned short mor[1024];

#endif //_HEADER_MOR_H

ben je ne vois pas de palette...
avatar
pixel and 3D graphics: www.madpxl.com

seeking iPhone developer, contact me !


10

-

11

oki mais en fait je me suis planter sur mon topic^^(g ecrit sans réfléchir^^)
sinon comment on fait pour afficher un bmp en 16 bits ?
avatar
pixel and 3D graphics: www.madpxl.com

seeking iPhone developer, contact me !


12

-

13

oki jvé essayer^^
avatar
pixel and 3D graphics: www.madpxl.com

seeking iPhone developer, contact me !


14

Orion_
:
MaDsk8tard
: il n'y a pas de palette et il est en 256 couleurs^^
c'est impossible...

lol, je suis un magicien^^

sinon mad tu as reussi a compiler l'exemple que je t'ai fait... donc c'est un bon debut qd meme ^^
mon site sur GP32news

le site de la DONUT TEAM

Le forum Jeux videos

15

par exemple je le met en 256 couleurs et kan je le convertie avec tin tool g le meme pb...
je vous met comment je l'affiche :
bien avant je déclare le gfx ("mor") :

extern const unsigned int mor[32][8];

puis apres je veut l'afficher comme un fond d'ecran :

for(decalagex=0;decalagex<320;decalagex=decalagex+32)
{
for(decalagey=0;decalagey<240;decalagey=decalagey+32)
{
GpBitBlt(NULL,&gpDraw[nflip],decalagex,decalagey,32,32,(unsigned char*)mor,0,0,32,32);
}
} mais je c que c la conversion qui foire car avec un BMP convertie par brain ça marche nikel^^

240/32 n'est pas possible.
extern const unsigned int mor[32][8];

je dirais plutot extern const unsigned int mor[32][32]; au moin , tu est certain que ca s'affiche comme il faut

de plus, met directement ton fichier en .h et include le , sera plus simple et plus besoin du extern const unsigned int mor

pour ma part, j'ai jamais reussis avec tinytools a convertir mon image.
avatar
pourquoi la mort ? parce qu'elle nous est si douce, au contraire de la vie :)