Hi Mahendra? G.R? All you need to do is cast the data return type to float&.
Robert. On Fri, Sep 24, 2010 at 2:04 PM, Mahendra G.R <mahen...@mahendragr.com> wrote: > Hello Guys, > > I have a small situation here, i'm trying to write float data into an image > file using image->data(x,y,z)[0] = 0.352 (an example), but it automatically > converts it into char, how can i prevent this? > > Thanks, > Best regards > > -- > http://www.mahendragr.com > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org