This function swaps the 2 bytes of each 16-bit pixel in the image.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI MED_IP_swap_bytes(HIGEAR hIGear); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | HIGEAR handle of the image. |
Returns the number of ImageGear errors that occurred during the function call.
Grayscale – 9…16 bpp.
This function can be used to help fix poorly constructed images which have the high and low bytes of each 16-bit grayscale pixel reversed. All pixels in the image are transformed.