Kevin Bjorke wrote:
> I need to create a list of Singles to use
> System.Drawing.Darwing2D.ColorBlend's Position member. Color me
> ignorant, but how can I create such a thing? I can't just pass a list of
> floats

It would be convenient to pass a tuple of floats, too bad this doesn't work. 
You can use System.Array.CreateInstance to create a Single[]:

 >>> System.Array.CreateInstance(System.Single, 3)
System.Single[](0.0, 0.0, 0.0)

Hope this helps.
-- 
Jonathan

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to