Can be used to move each channel's intensity into another channel. This can be used for instance, to make the alpha channel visible by moving it into any color channel. Another application could be the reordering of channels, if images are saved in different endian models (big endian vs. little endian).
SYNTAX:
newImg& = ShiftARGB& (shan&, order$, minX%, minY%, maxX%, maxY%, mask&)
INPUTS:
order$ (STRING)
- The new channel order (eg. "BGRA"), the case of the letters doesn't matter. Note that each channel must be used exactly once in the new order, hence there are 24 different spellings. Invalid inputs result in keeping the original ARGB order.
shan&, mask& (LONGs)
minX%, minY%, maxX%, maxY% (INTEGERs)
- See page Common Info.
RESULT:
newImg& (LONG)
- See page Common Info.