Page MenuHome

pixelpatch_doc.diff

pixelpatch_doc.diff

Index: Image.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Image.py,v
retrieving revision 1.8
diff -u -w -b -r1.8 Image.py
--- Image.py 30 Apr 2005 19:30:35 -0000 1.8
+++ Image.py 30 Apr 2005 23:35:43 -0000
@@ -96,7 +96,7 @@
def getPixel(x, y):
"""
- Get the the colors of the current pixel in the form [r,g,b,a].
+ Get the colors of the current pixel in the form [r,g,b,a].
Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}
@returns: [ r, g, b, a]
@rtype: list of 4 floats
@@ -106,6 +106,26 @@
@param y: the y coordinate of pixel.
"""
+ def setPixel(x, y, [r,g,b,a]):
+ """
+ Set the colors of the current pixel in the form [r,g,b,a].
+ Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}
+ @returns: None
+ @rtype: None
+ @type x: int
+ @type y: int
+ @type r: float
+ @type g: float
+ @type b: float
+ @type a: float
+ @param x: the x coordinate of pixel.
+ @param y: the y coordinate of pixel.
+ @param r: the red component of the color (from 0.0 - 1.0)
+ @param g: the green component of the color (from 0.0 - 1.0)
+ @param b: the blue component of the color (from 0.0 - 1.0)
+ @param a: the alpha component of the color (from 0.0 - 1.0)
+ """
+
def getMaxXY():
"""
Get the x & y size for the image. Image coordinates range from 0 to size-1.
@@ -113,6 +133,13 @@
@rtype: list of 2 ints
"""
+ def getMinXY():
+ """
+ Get the x & y origin for the image.
+ @returns: [x, y]
+ @rtype: list of 2 ints
+ """
+
def getXRep():
"""
Get the number of repetitions in the x (horizontal) axis for this Image.
@@ -195,4 +222,10 @@
Texture tiling: set the number of y repetitions for this Image.
@type yrep: int
@param yrep: The new value in [1, 16].
+ """
+ def Save():
+ """
+ Saves image buffers to the current image.
+ @return: None
+ @rtype: None
"""

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
55/8c/459623ba4f78e96f5ce53bc1438e

Event Timeline