I have an image of size (640px,128px)with two subimages, one (128px,300px) and one (512px,300px) pixel.
the two images are one on the top of the other, without space between them.
The problem is that i must resize this image (that have two subimages) in an unique image of (1024px,300px), and find the result offset from the top to the bottom:
for example in the start image the offsets are 0-128 and 128-640.
I use freeimage ,an opensource library and the option is to stretch the result image.
is possible to find these offsets?
The ratio of the two subimages is the same in the start and in the resized images?