[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35976] trunk/blender/source/blender/ makesrna/intern/rna_image.c: Image pixel acces, through Image. pixels as floating point values.

Domino Marama domino at dominodesigns.info
Mon Apr 4 12:37:54 CEST 2011


On Sun, 2011-04-03 at 16:17 +0000, Brecht Van Lommel wrote:
> Revision: 35976
>           http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35976
> Author:   blendix
> Date:     2011-04-03 16:17:39 +0000 (Sun, 03 Apr 2011)
> Log Message:
> -----------
> Image pixel acces, through Image.pixels as floating point values.
> 
> It's not the most efficient solution, but this can be optimized later. It's
> best to copy out all the pixels at once into a list, rather than accessing
> them one by one.

Thanks for that. It is considerably slower than using pydna, but at
least everyone can use it easily :)

I've posted a simple ImageBuffer class here
http://blenderartists.org/forum/showthread.php?213940-Image-Buffer-Pixel-level-access-to-images

Cheers,
Domino



More information about the Bf-committers mailing list