
New Python Function - Image
Moderators: jesterKing, stiv
mchs3d: looking good... I'm impressed... looks like you've got some nice things going in the wiki as well.
My question though... since we can read the data... would it be possible to imput the data as well???
I'm looking for ways to stick a load of small images into one big one... And preferably without the PIL.
My question though... since we can read the data... would it be possible to imput the data as well???
I'm looking for ways to stick a load of small images into one big one... And preferably without the PIL.
I second that.
Actually, i can see two other uses for the ability to write pixels on the image:
To write image importers for unsupported formats, like the DDS textures.
To write procedural texture scripts.
Oh, yes another: to rewrite textures mapped on a different UV channel so that they match Blender's own single UV channel per mesh
Naturally, the ability to read the pixels allows us to write image exporters for unsupported formats, and things like resamplers for light probes and QTVR like images...
Actually, i can see two other uses for the ability to write pixels on the image:
To write image importers for unsupported formats, like the DDS textures.
To write procedural texture scripts.
Oh, yes another: to rewrite textures mapped on a different UV channel so that they match Blender's own single UV channel per mesh
Naturally, the ability to read the pixels allows us to write image exporters for unsupported formats, and things like resamplers for light probes and QTVR like images...
After our wiki discussion on naming and implementation, I was waiting for the float and integer versions of the get/setPixel methods or at least setPixelF().As you can see, however, they haven't been committed yet.
I made the getPixelF() change since we did not want to release with a method name that would not be supported.
Sorry, I guess I wasn't specific enough in my last post. I have posted to the tracker (here)
the following functions and their docs:
- Image.getPixelI(x, y)
- Image.getMinXY()
- Image.setPixelF(x, y, [r, g, b, a])
- Image.setPixelI(x, y, [r, g, b, a])
- Image.save()
the following functions and their docs:
- Image.getPixelI(x, y)
- Image.getMinXY()
- Image.setPixelF(x, y, [r, g, b, a])
- Image.setPixelI(x, y, [r, g, b, a])
- Image.save()