Page MenuHome

Image.py.v1.diff

Image.py.v1.diff

Index: Image.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Image.py,v
retrieving revision 1.10
diff -u -w -b -r1.10 Image.py
--- Image.py 15 Jun 2005 06:22:26 -0000 1.10
+++ Image.py 16 Jun 2005 23:03:01 -0000
@@ -106,6 +106,18 @@
@param x: the x coordinate of pixel.
@param y: the y coordinate of pixel.
"""
+ def getPixelI(x, y):
+ """
+ Get the the colors of the current pixel in the form [r,g,b,a].
+ Returned values are ints normalized to 0 - 255.
+ Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}
+ @returns: [ r, g, b, a]
+ @rtype: list of 4 ints
+ @type x: int
+ @type y: int
+ @param x: the x coordinate of pixel.
+ @param y: the y coordinate of pixel.
+ """
def getMaxXY():
"""
@@ -114,6 +126,13 @@
@rtype: list of 2 ints
"""
+ def getMinXY():
+ """
+ Get the x & y origin for the image. Image coordinates range from 0 to size-1.
+ @returns: [x, y]
+ @rtype: list of 2 ints
+ """
+
def getXRep():
"""
Get the number of repetitions in the x (horizontal) axis for this Image.
@@ -196,4 +215,41 @@
Texture tiling: set the number of y repetitions for this Image.
@type yrep: int
@param yrep: The new value in [1, 16].
+ """
+
+ def setPixelF(x, y, (r, g, b, )):
+ """
+ Set the the colors of the current pixel in the form [r,g,b,a].
+ Color values must be floats in the range 0.0 - 1.0.
+ Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}
+ @type x: int
+ @type y: int
+ @type r: float
+ @type g: float
+ @type b: float
+ @type a: float
+ @returns: nothing
+ @rtype: none
+ """
+
+ def setPixelI(x, y, (r, g, b, a)):
+ """
+ Set the the colors of the current pixel in the form [r,g,b,a].
+ Color values must be ints in the range 0 - 255.
+ Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}
+ @type x: int
+ @type y: int
+ @type r: int
+ @type g: int
+ @type b: int
+ @type a: int
+ @returns: nothing
+ @rtype: none
+ """
+
+ def save():
+ """
+ Saves the current image.
+ @returns: nothing
+ @rtype: none
"""

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
dc/23/228c3ba4a18073c5253593b2975c

Event Timeline