After a short talk with Sergio, we found that what he wants is to set the points size in map units, just like QGIS does it. <br><br>So he is looking at the setPointSizeUnits method from QgsSymbol class. This way he can't use QgsVertexMarker (I guess), so he should use a temporal layer.<br>
<br>Germán<br><br><div class="gmail_quote">2009/12/14 Martin Dobias <span dir="ltr"><<a href="http://wonder.sk">wonder.sk</a>@<a href="http://gmail.com">gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/12/11 sergio cavalcante <<a href="mailto:sergio.cavalcante@gmail.com">sergio.cavalcante@gmail.com</a>>:<br>
<div class="im">> Germán! It workerd great!<br>
> As I'm using C++ with Qt, the code to draw just a white point is here:<br>
><br>
> QgsVertexMarker *marker = new QgsVertexMarker(m_qgsImage);<br>
><br>
> marker->setCenter( QgsPoint( -51.235, -16.9316 ) );<br>
> //marker->setCenter( QgsPoint( -51.235, -16.9316 ) );<br>
> marker->setIconType( 3 );<br>
> marker->setIconSize( 10 );<br>
> marker->setColor( QColor( 255,255,255,255 ) );<br>
> marker->setPenWidth ( 1 );<br>
><br>
> I was very happy...Until I zoomed the area. As a vector, obviously,<br>
> when zoomed, it remained as a small point. And, as I need to draw a<br>
> lot of points to draw a larger image composed by them, I needed that<br>
> this zoom to escale the point like a raster file. Is there a way to<br>
> plot the point onto the rasterfile?<br>
<br>
</div>Hi Sergio,<br>
<br>
what are you actually trying to do? Draw an image on the canvas at<br>
some specified place? You might want to create a class derived from<br>
QgsMapCanvasItem that would do the rendering in a way you want it to<br>
be.<br>
<font color="#888888"><br>
Martin<br>
</font></blockquote></div>-- <br>-----------<br> |\__ <br>(:>__)(<br> |/ <br><br>Soluciones Geoinformáticas Libres <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br>