Hi Bugra,
I’ve read the thread you noticed in your answer and thank for that.
You’re totally right it skew the resulting image.
But I don’t know how to deal with this padding.
First of all, for me, a padding is normaly all around the image (css).
In SU API context I only have one line. 577 pixels. The padding is not all around ?
So, I’ve tried to increase the height with just one row (which is the exact difference between SUImageGetDataSize and formula w * h * bpp)
SUTextureCreateFromImageData(&texture, pixel_width, pixel_height+1, bits_per_pixel, &pixel_data[0]);
No success
Is there a way actually to output correctly images with SUTextureCreateFromImageData ?
Many thanks for your previous answers