Page 1 of 1

import the image

Posted: Thu Apr 27, 2017 2:09 pm
by snfge
Hi
when I import the jpg pic, how can set it position and size?

Re: import the image

Posted: Mon May 01, 2017 7:32 pm
by daniel
If you want to control where an image is displayed, you have to actually create a small rectangle (ccPlane) and then map the image on it as a texture (see ccPlane::setAsTexture).

It's used in at least two different plugins (qSRA and qEllipser if I'm not mistaken).