[osg-users] Copy a region of an image x,y,w,h / s,t,r

Johny Canes psijsma at gmail.com
Tue Feb 27 03:41:00 PST 2018


Hi,

I want to load an image and then cut a region of that loaded image (1) and turn it into another image (2).

I don't understand the s_offset, t_offset and r_offset convention. Can you explain me what that is? I've tried to Google it.

tl;dr...I think copySubImage is what I want, but I don't understand the parameters.

Thank you!

Cheers,
Johny

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72985#72985







More information about the osg-users mailing list