Juste pour vous dire que j'ai fait un petit programme et que problem1.xml pèse 18Mo si j'active tous les pixels de l'écran.
Donc je pense que excepté faire crasher la Nspire, il va falloir trouver une autre solution...
La solution existe sans doute, et s'appelle le nuage de point. Donc je repart de zéro.
Je met tout de même le code de mon programme de simulation si ça peut intéresser quelqu'un.
Attention, il y a un micmac absolu, tenez vous avant de vous y attaquer.
Show/Hide spoilerAfficher/Masquer le spoiler
- Code: Select all
Print "Traducteur BMP==XML pour TI Nspire"
Print "218"
Print "318"
Print "Nom du fichier .bmp (avec extension, sans espaces):"
rem input bmpfich$
bmpfich$="bmp.bmp"
Print "Nom du fichier .xml à créer (avec extension, sans espaces):"
rem input xmlfich$
xmlfich$="xml.xml"
xmlciblefich$="C:"
xmlfich$=xmlciblefich$+xmlfich$
open #1, xmlfich$,"w"
rem ?xml version="1.0" encoding="UTF-8" ?prob xmlns="urn:TI.Problem" ver="1.0"sym/symcard clay="0" h1="10000"
h2="10000" w1="10000" w2="10000"flag0/flagwdgt xmlns:gg="urn:TI.GeoGrapher" type="TI.GeoGrapher" ver="1.0"
print #1
"gg:mFlags2048/gg:mFlagsgg:value1/gg:valuegg:anim_x10/gg:anim_xgg:anim_y35/gg:anim_ygg:figgg:ver3/gg:ve
rgg:objsgg:axes_systemgg:id1/gg:idgg:axes_p/gg:axes_pgg:xorg43/gg:xorggg:yorg46/gg:yorggg:xuni0.04021
764706/gg:xunigg:yuni0.02441785714/gg:yunigg:xmin0/gg:xmingg:xmax340/gg:xmaxgg:ymin0/gg:ymingg:ymax2
80/gg:ymaxgg:acol0/gg:acolgg:aast0/gg:aastgg:aazm8/gg:aazmgg:apth0/gg:apthgg:asho1/gg:ashogg:lbl/gg:l
blgg:stat0/gg:stat/gg:axes_systemgg:axisgg:id2/gg:idgg:par1
/gg:pargg:xaxis/gg:xaxisgg:smrt2/gg:smrtgg:sm10/gg:sm1gg:sm213.674/gg:sm2gg:alco0/gg:alcogg:acst0/g
g:acstgg:apst0/gg:apstgg:apth0/gg:apthgg:asho1/gg:ashogg:ales0/gg:alesgg:lblx/gg:lblgg:stat16/gg:stat/gg:
axisgg:labelgg:id3/gg:idgg:par2
/gg:pargg:lbl_agg:t0.5/gg:tgg:dx0/gg:dxgg:dy0/gg:dy/gg:lbl_agg:chrs1 1 3 0 0 0
x/gg:chrsgg:deta0/gg:detagg:atta1/gg:attagg:x50/gg:xgg:y50/gg:ygg:atco0/gg:atcogg:afon0/gg:afongg:a
sho1/gg:ashogg:lbl/gg:lblgg:stat0/gg:stat/gg:labelgg:axisgg:id4/gg:idgg:par1
/gg:pargg:yaxis/gg:yaxisgg:smrt2/gg:smrtgg:sm10/gg:sm1gg:sm26.837/gg:sm2gg:alco0/gg:alcogg:acst0/gg:
acstgg:apst0/gg:apstgg:apth0/gg:apthgg:asho1/gg:ashogg:ales0/gg:alesgg:lbly/gg:lblgg:stat16/gg:stat/gg:a
xisgg:labelgg:id5/gg:idgg:par4 /gg:pargg:lbl_agg:t0.5/gg:tgg:dx0/gg:dxgg:dy0/gg:dy/gg:lbl_agg:chrs1
1 3 0 0 0
y/gg:chrsgg:deta0/gg:detagg:atta1/gg:attagg:x50/gg:xgg:y50/gg:ygg:atco0/gg:atcogg:afon0/gg:afongg:a
sho1/gg:ashogg:lbl/gg:lblgg:stat0/gg:stat/gg:labelgg:gridgg:id6/gg:idgg:par1
/gg:pargg:grid_as/gg:grid_asgg:acol10066329/gg:acolgg:agst0/gg:agstgg:apth0/gg:apthgg:asho0/gg:ashogg:lb
l/gg:lblgg:stat16/gg:stat/gg:grid"
print "Offset de l'image (62 pour moi):"
rem input offset
offset=62
id=7
bmpvar=2
bmpciblefich$="C:"
bmpfich$=bmpciblefich$+bmpfich$
print bmpfich$
open bmpvar, bmpfich$,"rb"
for i=1 to offset
bmpbrut$=chr$(peek(#2))
print bmpbrut$
next i
for j=1 to 218
for k=1 to 40
bmpbrut$=chr$(peek(#2))
print bmpbrut$
if bmpbrut$="ÿ" then
for l=1 to 8
print #1 "gg:pointgg:id"
print #1 "id"
print #1 "/gg:idgg:par1 /gg:pargg:pton_axesgg:x"
print #1 k*8+(l-8)
print #1 "/gg:xgg:y"
print #1 j
print #1
"/gg:y/gg:pton_axesgg:x50/gg:xgg:y50/gg:ygg:acol0/gg:acolgg:adst0/gg:adstgg:asho1/gg:ashogg:aloc0/
gg:alocgg:lbl/gg:lblgg:stat0/gg:stat/gg:point"
id=id+1
next l
endif
next k
next j
close #2
print #1
"/gg:objsgg:toolgg:ToolGraphergg:vis0/gg:visgg:dhs/gg:dhsgg:phs/gg:phsgg:shs/gg:shs/gg:ToolGraphergg:
ToolScalegg:len20/gg:lengg:vis0/gg:vis/gg:ToolScale/gg:toolgg:anim1/gg:animgg:w100/gg:wgg:h100/gg:h
gg:vpx42.05/gg:vpxgg:vpy54.6/gg:vpygg:geos1/gg:geosgg:geoucm/gg:geou/gg:fig/wdgt/card/prob"
close #1