import the image

Feel free to ask any question here
Post Reply
snfge
Posts: 72
Joined: Thu Nov 20, 2014 4:12 am

import the image

Post by snfge »

Hi
when I import the jpg pic, how can set it position and size?
daniel
Site Admin
Posts: 7366
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: import the image

Post 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).
Daniel, CloudCompare admin
Post Reply