CImage:Byteswap
The Byteswap method swaps the byte within the image pixels.
bResult = CImage:Byteswap()
The Byteswap operation can be needed when exchanging images across different computer architecture that store numbers with opposite byte orders.
The following script loads an image from the file sPath, swaps the pixel byte order, and saves the result back to the file:
|
-- create a new CImage |
|
-- load the image from a file named sPath |
|
-- perform the operation |
|
|
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.