hi everybody ,
i thought i could get it ,but still can't find a way...
i would like to resize an image in a matrix ,
as if i was using "srcdimstart" and "srcdimend" ,
the difference is that i would like not to be constrained by 90 degrees angles , at all .
i would like to be able to point any location in the matrix , and link it to one of the corners of my new matrix (which will be a rectangle , but with extrapolated pixels from the 4 corners --> the new """"texture coordinates"""")
and do the same for the 3 other points (as if i was using a sort of reversed cornerpin ) .
i'm not sure i'm clear , ...
i want my matrix to keep the same dimensions ,
but its pixels to be extrapolated from new coordinates ,
inside this same matrix .
that will add duplicate pixels in the matrix , and that' s what i'm looking for .
mxform2d and jit.repos seem to be , maybe , the good boxes ,
but i would like a click and drag-style method .
i have put a jit.gl.cornerpin to point on a gl context ,
(i get the coordinates with "getstate") and a videoplane which exactly fits the window's borders ,
the normalized coordinates of the cornerpin's corners is then scaled to the window's resolution , giving me the x and y coordinates in the image .
so that i should get the exactly same image , inside the jit.gl.cornerpin , and on the videoplane ,
wherever i would move the corners ,
IIIIIIFFFFFF , i had the answer to my question ,
which is not the case .