Regular API function

simTransformImage / sim.transformImage

Description Transforms an image in various ways. See also sim.loadImage, sim.getScaledImage, sim.transformBuffer and sim.combineRgbImages.
C/C++
synopsis
simInt simTransformImage(simUChar* image,const simInt* resolution,simInt options,const simFloat* floatParams,const simInt* intParams,simVoid* reserved)
C/C++
parameters
image: a pointer to rgb or rgba values of the image
resolution: the resolution of the image
options: bit-coded:
bit0 set (1): the provided image is rgba (or a depth buffer, i.e. one float per image pixel), otherwise it is rgb
bit1 set (2): the image will be flipped on its x-axis
bit2 set (4): the image will be flipped on its y-axis
floatParams: Reserved for future extension. Set to nullptr.
intParams: Reserved for future extension. Set to nullptr.
reserved: Reserved for future extension. Set to nullptr.
C/C++
return value
-1 if operation was not successful.
Lua
synopsis
sim.transformImage(buffer image,int[2] resolution,int options)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.transformImage(bytes image,list resolution,int options)