Hi, all:
I programed a test to scale an image on android 1.5.
I got the data of a png image, and printed , all of the data is 0.
I don't know how to resolve it:
MAHandle newImage = maCreatePlaceholder();
MAExtent textureSize = maGetImageSize(maHandle);
int sTextureWidth = EXTENT_X(textureSize);
int sTextureHeight = EXTENT_Y(textureSize);
int *texture = new int [sTextureWidth*sTextureHeight];
MARect srcRect = {0, 0, sTextureWidth, sTextureHeight};
maGetImageData(maHandle, texture, &srcRect, sTextureWidth);
for (int i = 0; i < sTextureWidth*sTextureHeight; i++) {
printf("i = %d", texture[i]);
}
My Mosync is r1853.
maGetImageData is right on symbian and java but android is wrong.
I am not good at English, can you understand me ?
thanks for your help!