In accordance with core tangram changes, its required to flip bitmap image.
Change-Id: Ia1fc636c814567bd0ad8aa6b770dc9b089b5cf10
*(imgData + offset + 3) = *(srcData + offset + 3);
}
}
+
+ // flip converted image
+ unsigned int *flippedImg = (unsigned int*)imgData;
+ unsigned int temp;
+ for (int i = 0; i < (imgHeight>>1); i++) {
+ unsigned int* lower = flippedImg + (i * imgWidth);
+ unsigned int* upper = flippedImg + ((imgHeight - i - 1) * imgWidth);
+ for (int j = 0; j < imgWidth; j++) {
+ temp = lower[j];
+ lower[j] = upper[j];
+ upper[j] = temp;
+ }
+ }
} while (0);
return (mapzen_error_e)convert_maps_error_to_mapzen_error(error);