[Python.NET] Re: Arrays float
"Span, M.M." <[email protected]> Fri, 25 Sep 2020 15:02:05 +0200
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <CA+grVgoq0DO-=_=54hgC=aGXiUKR_M-jid2kUNBFMRaoT5QMEA@mail.gmail.com> |
--===============4622255467974522978== Content-Type: multipart/alternative; boundary="0000000000001a4ce605b022ede7" --0000000000001a4ce605b022ede7 Content-Type: text/plain; charset="UTF-8" 0.0 or 0,0? On Fri, 25 Sep 2020, 14:57 Gavin via PythonNet, <[email protected]> wrote: > Hello > > im trying to convert this line of code > > buffer = array.array("f", [0.0]) * (WIDTH * HEIGHT * bufferdepth) > > but have problems its an image buffer of floats but it does not like the > [0,0] > > can anyone help > thanks in advance > _______________________________________________ > PythonNet mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/pythonnet.python.org/ > Member address: [email protected] > --0000000000001a4ce605b022ede7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">0.0 or 0,0?</div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Fri, 25 Sep 2020, 14:57 Gavin via PythonNe= t, <<a href=3D"mailto:[email protected]">[email protected]</a>>= wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8= ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style=3D"font-fam= ily:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div dir=3D"l= tr">Hello</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">im trying to con= vert this line of code=C2=A0</div><div dir=3D"ltr"><br></div><div dir=3D"lt= r"><span>buffer =3D array.array("f", [0.0]) * (WIDTH * HEIGHT * b= ufferdepth)</span><br></div><div dir=3D"ltr"><span><br></span></div><div di= r=3D"ltr"><span>but have problems its an image buffer of floats but it does= not like the [0,0]=C2=A0</span></div><div dir=3D"ltr"><span><br></span></d= iv><div dir=3D"ltr"><span>can anyone help</span></div><div dir=3D"ltr"><spa= n>thanks in advance</span></div></div></div>_______________________________= ________________<br> PythonNet mailing list -- <a href=3D"mailto:[email protected]" target=3D= "_blank" rel=3D"noreferrer">[email protected]</a><br> To unsubscribe send an email to <a href=3D"mailto:[email protected]= g" target=3D"_blank" rel=3D"noreferrer">[email protected]</a><br> <a href=3D"https://mail.python.org/mailman3/lists/pythonnet.python.org/" re= l=3D"noreferrer noreferrer" target=3D"_blank">https://mail.python.org/mailm= an3/lists/pythonnet.python.org/</a><br> Member address: <a href=3D"mailto:[email protected]" target=3D"_blank" rel= =3D"noreferrer">[email protected]</a><br> </blockquote></div> --0000000000001a4ce605b022ede7-- --===============4622255467974522978== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PythonNet mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/pythonnet.python.org/ Member address: [email protected] --===============4622255467974522978==--