|
mergeRGB
|
|
|
|
| Red, Green, Blue
|
|
|
| Integers between 0 and 116 specifying the frame numbers of the Red, Green and Blue component images respectively. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.
|
|
|
| Output
|
|
|
| An integer between 1 and 116 specifying the frame number of the output RGB image. Values in the range of 100-116 correspond to hidden frames.
|
|
|
| ERR_OK
|
|
|
| The flag set if successful.
|
|
|
| ERR_FAILED
|
|
|
| The flag set if failed.
|
| This set of statements adds more red color to an RGB image by splitting it into the RGB components, offsetting all the pixels in the Red component by a value of +32 and then merging the components back into an RGB image.
|
|
|
| R=101
|
| G=102
|
| B=103
|
| Off=32
|
| setCurDir("samples")
|
| loadIm (1,"sample14.iwd")
|
| splitRGB (1, R, G, B)
|
| offsetIm (R, B, Off, M_CLIP)
|
| mergeRGB (R, G, B, 2)
|
|
|