[Python.NET] Arrays float

Gavin via PythonNet <[email protected]> Fri, 25 Sep 2020 11:40:17 +0000 (UTC)
Newsgroups gmane.comp.python.dotnet
Message-ID <[email protected]>
--===============3886727203210390633==
Content-Type: multipart/alternative;
	boundary="----=_Part_1094264_954255700.1601034017434"

------=_Part_1094264_954255700.1601034017434
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello
im trying to convert this line of code=C2=A0
buffer =3D 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]=C2=A0
can anyone helpthanks in advance
------=_Part_1094264_954255700.1601034017434
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Hello</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">im trying to convert this line of code&nbsp;</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span>buffer = array.array("f", [0.0]) * (WIDTH * HEIGHT * bufferdepth)</span><br></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>but have problems its an image buffer of floats but it does not like the [0,0]&nbsp;</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>can anyone help</span></d
 iv><div dir="ltr" data-setdir="false"><span>thanks in advance</span></div></div></body></html>
------=_Part_1094264_954255700.1601034017434--

--===============3886727203210390633==
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]

--===============3886727203210390633==--