Regular API function

simTransformImage

Description Transforms an image in various ways. See also simLoadImage and simGetScaledImage.
C synopsis simInt simTransformImage(simUChar* image,const simInt* resolution,simInt options,const simFloat* floatParams,const simInt* intParams,simVoid* reserved)
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, 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 NULL.
intParams: Reserved for future extension. Set to NULL.
reserved: Reserved for future extension. Set to NULL.
C return value
-1 if operation was not successful.
Lua synopsis number result=simTransformImage(string image,table_2 resolution,number options)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page