57""" 58 Get the Image object(s) from Blender. 59 @type name: string 60 @param name: The name of the Image object. 61 @rtype: Blender Image or a list of Blender Images 62 @return: It depends on the I{name} parameter: 63 - (name): The Image object called I{name}, None if not found; 64 - (): A list with all Image objects in the current scene. 65 """

68""" 69 Get the currently displayed Image from Blenders UV/Image window. 70 When multiple images are displayed, the last active UV/Image windows image is used. 71 @rtype: Blender Image 72 @return: The Current Blender Image, If there is no current image it returns None. 73 """

145"""146 Get the the colors of the current pixel in the form [r,g,b,a].147 For float image types, returned values can be greater then the useual [0.0, 1.0] range.148 Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}149 @returns: [ r, g, b, a]150 @rtype: list of 4 floats151 @type x: int152 @type y: int153 @param x: the x coordinate of pixel.154 @param y: the y coordinate of pixel. 155 """

158"""159 Get the the colors of the current pixel in the form [r,g,b,a].160 Returned values are floats normalized to 0.0 - 1.0.161 Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}162 @returns: [ r, g, b, a]163 @rtype: list of 4 floats164 @type x: int165 @type y: int166 @param x: the x coordinate of pixel.167 @param y: the y coordinate of pixel. 168 """

171"""172 Get the the colors of the current pixel in the form [r,g,b,a].173 Returned values are ints normalized to 0 - 255.174 Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}175 @returns: [ r, g, b, a]176 @rtype: list of 4 ints177 @type x: int178 @type y: int179 @param x: the x coordinate of pixel.180 @param y: the y coordinate of pixel. 181 """

237"""238 Reloads this image from the filesystem. If used within a loop you need to239 redraw the Window to see the change in the image, e.g. with240 Window.RedrawAll().241 @warn: if the image file is corrupt or still being written, it will be242 replaced by a blank image in Blender, but no error will be returned.243 @returns: None244 """

253"""254 Load this image's data into OpenGL texture memory, if it is not already255 loaded (image.bindcode is 0 if it is not loaded yet).256 @note: Usually you don't need to call this method. It is only necessary257 if you want to draw textured objects in the Scripts window and the258 image's bind code is zero at that moment, otherwise Blender itself can259 take care of binding / unbinding textures. Calling this method for an260 image with nonzero bind code simply returns the image's bind code value261 (see L{getBindCode}).262 @rtype: int263 @returns: the texture's bind code.264 """

267"""268 Delete this image's data from OpenGL texture memory, only (the image itself269 is not removed from Blender's memory). Internally, glDeleteTextures (see270 L{BGL.glDeleteTextures}) is used, but this method also updates Blender's271 Image object so that its bind code is set to 0. See also L{Image.glLoad},272 L{Image.getBindCode}.273 """

283"""284 Change the filename of this Image object.285 @type name: string286 @param name: The new full filename.287 @warn: use this with caution and note that the filename is truncated if288 larger than 160 characters.289 """

327"""328 Set the the colors of the current pixel in the form [r,g,b,a].329 For float image types, returned values can be greater then the useual [0.0, 1.0] range.330 Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}331 @type x: int332 @type y: int333 @type r: float334 @type g: float335 @type b: float336 @type a: float337 @returns: nothing338 @rtype: none339 """

342"""343 Set the the colors of the current pixel in the form [r,g,b,a].344 Color values must be floats in the range 0.0 - 1.0.345 Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}346 @type x: int347 @type y: int348 @type r: float349 @type g: float350 @type b: float351 @type a: float352 @returns: nothing353 @rtype: none354 """

357"""358 Set the the colors of the current pixel in the form [r,g,b,a].359 Color values must be ints in the range 0 - 255.360 Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY}361 @type x: int362 @type y: int363 @type r: int364 @type g: int365 @type b: int366 @type a: int367 @returns: nothing368 @rtype: none369 """

372"""373 Saves the current image to L{filename}374 @note: Saving to a directory that doent exist will raise an error.375 @note: Saving a packed image will make a unique (numbered) name if the file alredy exists. Remove the file first to be sure it will not be renamed.376 @returns: None377 """

380"""381 Packs the image into the current blend file.382383 Since 2.44 new images without valid filenames can be packed.384385 If the image is alredy packed, it will be repacked.386387 @returns: nothing388 @rtype: none389 """

392"""393 Unpacks the image to the images filename.394 @param mode: One of the values in L{Blender.UnpackModes}.395 @note: An error will be raised if the image is not packed or the filename path does not exist.396 @returns: nothing397 @rtype: none398 @type mode: int399 """

401"""402 Set the currently displayed Image from Blenders UV/Image window.403 When multiple images are displayed, the last active UV/Image windows image is used.404 @warn: Deprecated, set bpy.data.images.active = image instead.405 @rtype: bool406 @return: True if the current image could be set, if no window was available, return False.407 """