Resize an image buffer -Fixed point(16bit)

Started by
3 comments, last by nagromo 16 years, 11 months ago
hi, how can i resize an RGB image buffer with unsigned char* type, the catch is it sould be a fixed point and doesnt use floating point variable.
Advertisement
What API? What do you mean "resize" it? Just reallocate the array holding the values? Do you want to stretch the existing image or something, fill the new memory with a certain value, or just copy the existing image into the top left? Are you sizing up or down?
perhaps the term is SCALE.
for example i have an RGB image with dimensions of 126x20 and i want to resize to new dimension 640x480. im looking for a fixed point formula on resize.
i want the function to support resize up or down.

bump
Wikipedia link.

This topic is closed to new replies.

Advertisement