[Bf-python] Image.getPixelColor

Austin Benesh bfdeveloper at gmail.com
Sun May 1 01:38:18 CEST 2005


Thanx, I'm posting my patches now. They should be up in like 5 minutes.

-- Austin
-----Original Message-----
From: bf-python-bounces at projects.blender.org
[mailto:bf-python-bounces at projects.blender.org] On Behalf Of Stephen Swaney
Sent: Saturday, April 30, 2005 5:14 PM
To: Blender Foundation Python list
Subject: Re: [Bf-python] Image.getPixelColor

On Sat, Apr 30, 2005 at 02:34:35PM -0600, Austin Benesh wrote:
> 
> setPixel(i x, i y, f r, f g, f b, f a)

You might want to consider making this accept a sequence
for the pixel values:  setPixel( x, y, (colors) ).

This way getPixel and setPixel can interoperate:
a.setPixel( x, y, b.getPixel( x, y ) )

Eventually, we will need some high-performance operators
to play with pixels; either via BGL buffers or perhaps
using the slice operator [:].

Feel free to create a discussion page on the wiki.

> getMinXY()

is this the same or different than the Imbuf.xorig, yorig members?

> and
> Image.Save()

As for using PIL, I don't see us distributing it, but is should
not be difficult to write some adaptors to allow it to work
with our Image module.

-- 
Stephen Swaney			
sswaney at centurytel.net

_______________________________________________
Bf-python mailing list
Bf-python at projects.blender.org
http://projects.blender.org/mailman/listinfo/bf-python




More information about the Bf-python mailing list