ImageGear Professional DLL v17.1 for Windows Accusoft
MED_IP_swap_bytes
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > MD Component API Reference > MD Component Functions Reference > Image Processing Functions > MED_IP_swap_bytes

Glossary Item Box

This function swaps the 2 bytes of each 16-bit pixel in the image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI MED_IP_swap_bytes(HIGEAR hIGear);

Arguments:

hIGear HIGEAR handle of the image.

Return Value:

Returns the number of ImageGear errors that occurred during the function call.

Supported Raster Image Formats:

Grayscale – 9…16 bpp.

Remarks:

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.

©2012. Accusoft Corporation. All Rights Reserved.