Question about "setPixelsOfCookingPlane" python me

   1140   0   1
User Avatar
Member
383 posts
Joined:
Offline
Hello,

the help show this method like that :

setPixelsOfCookingPlane(values, component=None, interleaved=True, flip_vertically=False)

i don't know how to use the component argument. I assume this is one of the channel of the image to cook ( R V B or A) but I can't get it to work.

The main goal is to generate an image possibly with one channel (grayscale).
For the moment I fill each channel with the same value to obtain grayscale image. How I can I fill only the red channel for example or create an image with only one channel/component ( if it is really the same thing).

thanks for you help

Vincent
http://vimeo.com/vbkstudio [vimeo.com]
  • Quick Links