In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

elipse transparente

Foro de Xailer profesional en español
Responder
PacoGomis
Mensajes: 21
Registrado: Sab Sep 19, 2015 9:10 am
Ubicación: Alicante

elipse transparente

Mensaje por PacoGomis »

Estoy intentando pintar un elipse con el color de fondo transparente, he empleado SetbkMode( hDC, TRANSPARENT ), pero me sale el fondo siempre en blanco, la idea es aplicarlo con el evento OnCardPaint de la clase TcardBox, alguien me podría indicar como conseguirlo, si se puede. Gracias
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: elipse transparente

Mensaje por ignacio »

Del Winn32 API:

Ellipse function

The Ellipse function draws an ellipse. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined by using the current pen and is filled by using the current brush.

Mejor utiliza ARC()

Saludos
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
PacoGomis
Mensajes: 21
Registrado: Sab Sep 19, 2015 9:10 am
Ubicación: Alicante

Re: elipse transparente

Mensaje por PacoGomis »

Gracias Ignacio
Responder