reorder-components ( image component-order -- image' )
Image normalization

Prev:normalize-image ( image -- image' )


Vocabulary
images.normalization

Inputs
imagean image
component-ordera component-order


Outputs
image'an image


Word description
Convert the bitmap in image such that the pixel sample layout corresponds to component-order. If the destination layout cannot find a corresponding value from the source layout, the value 255 will be substituted for that byte.

Warning
The image's component-type will be changed to ubyte-components if it is not already in that format.

You cannot use this word to reorder DEPTH, DEPTH-STENCIL or INTENSITY component orders.


Definition