1

Comment à partir de la fonction:
BitmapGet (&(SCR_RECT){{0,0,159,99}}, img);
créer une variable image (un fichier du type IMG)?

Comme en basic avec la fonction StoPic

2

heu, tu veux dire le type PIC ...
c encore qq manip a faire une fois que t'as sauvegarder l'image (cf TiGCC doc)

3

Si t'en a besoin que dans ton prog, tu peux utiliser des malloc, c + simple
the car's on fire and there's no driver at the wheel
and the sewers are all muddied with a thousand lonely suicides
and a dark wind blows

GYBE! Dead Flag Blue

4

oui PIC en anglais
je sais qu'il faut rajouter des lignes mais
Ca me fera gagner du temps si quequ'un a la réponse

5

C'est pas que pour mon programme.
En fait cela me sert(servira) à sauvegarder
l'écran et de pouvoir regarder l'image sans
passer par un prog

6

si je me souviens bien c marqué dans la doc de TIGCC.
the car's on fire and there's no driver at the wheel
and the sewers are all muddied with a thousand lonely suicides
and a dark wind blows

GYBE! Dead Flag Blue

7

je crois que, ds la doc de TIGCC, ce qui est mis, c la technique pour afficher une PIC, et non pas l'afficher (je me trompe peut-être !)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

8

je vais regarder ça, mais à mon avis, essaye de trouver un ROM_CALL qui fait ça dans la rom...
avatar
fabetal_ > Hier, je me suis fait monter par un pote
redangel > et en chevals, ça donne quoi?
Nil> OMG I think I'm gay

9

Je crois pas qu'il y en ait, je crois que tu dois le faire "à la main", s'il faut en utilisant une structure BITMAP.
(voir la structure des fichiers images dans la doc. du SDK de TI).

10

les BITMAP ont une structure qui correspond presque exactement aux fichiers PIC... => après, pour plus de précisiosn, la doc du SDK de TI est pas mal... (je crois que, sinon, y'a aussi une doc de gareth James, mais plus axées ASM)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

11

t'enregistres LCD_MEM avec les fctions fopen, fwrite, fputc (avec le tag correspondant)
fclose.
the car's on fire and there's no driver at the wheel
and the sewers are all muddied with a thousand lonely suicides
and a dark wind blows

GYBE! Dead Flag Blue

12

fichier PIC = structure BITMAP + PIC_TAG
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

13

j'y arrive presque à l'aide de vos nombreux conseils.

char img [BITMAP_HDR_SIZE + 160*100/8];
FILE *fp;
...
BitmapGet (&(SCR_RECT){{0,0,159,99}}, img);
fp = fopen ("nomdefichier", "wb")
fputc (img,fp);
fputc (PIC_TAG, fp);
fclose (fp);

Ceci crée un fichier du type PIC mais de 4 octets. Cela provient je pense de la première ligne. il faudrait remplacer BITMAP_HDR_SIZE par une structure BITMAP.

Ai-je raison?
Que faut il faire pour que cela marche parfaitement?

14

Il fo pas utiliser fputc pour mettre ton image, vu que ça va mettre qu'un caractère (1 octet), fo utiliser fwrite
the car's on fire and there's no driver at the wheel
and the sewers are all muddied with a thousand lonely suicides
and a dark wind blows

GYBE! Dead Flag Blue

15

Merci à tous
Voici LA solution:

char img [2004];
FILE *fp;
...
BitmapGet (&(SCR_RECT){{0,0,159,99}}, img);
fp = fopen ("nomdefichier", "wb")
fwrite (img,2004,1,fp);
fputc (PIC_TAG, fp);
fclose (fp);