Forum > Spanish

IMAGEN TRANSPARENTE

(1/2) > >>

donalejo:
Buenos dias , estimados amigos del foro:

Estoy dibujando la ruta del gps, quisiera que el canvas sea transparente cuando las rutas se cruzen o se solapen. Tienen Alguna idea de como se soluciona?

Les dejo la imagen y parte del codigo.

  pbRoute.Canvas.Brush.Color:=0 and ($ff shl 32);
        pbRoute.Canvas.Pen.Color:= clBlue + (($ff-$66) shl 32);
  pbRoute.Canvas.Pen.Width:=1;
  pbRoute.Canvas.Polygon(Movil);     

marcov:
(Moved to Spanish. The general forums are English only)

Handoko:
Translated using Google Translate:

--- Quote ---Good morning, dear friends of the forum:

I'm drawing the route of the GPS, I want the canvas to be transparent when the routes intersect or overlap. Do you have any idea how it is solved?

I leave the image and part of the code.
--- End quote ---

Did you mean you want to do polygon clipping?

I don't think you can do it using just TCanvas, you need to use third party library maybe:
http://www.angusj.com/delphi/clipper.php

taazz:
don't use polygon. Polygon is a shape it uses both a pen.color for its outline and a brush.color for its area use pbRoute.Canvas.Polyline(Movil) instead.

donalejo:
Perfecto pero eso no me soluciona el problema , necesito que las imagenes sean trasnparentes.

Navigation

[0] Message Index

[#] Next page

Go to full version