Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-07

fpcanvas and alpha-blending

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

I'd like fpcanvas to support alpha-blending while drawing for example polygons, and I wonder what the best way would be.

Maybe a new property AlphaBlend: Boolean to both TFPCustomBrush and TFPCustomPen?

Pen has Mode, which could have a new mode for alphablend, although I'm not sure if this is desirable... and brush has no mode.

thanks,

Felipe Monteiro de Carvalho

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 10 lines
Hello, I'd like fpcanvas to support alpha-blending while drawing for example polygons, and I wonder what the best way would be. Maybe a new property AlphaBlend: Boolean to both TFPCustomBrush and TFPCustomPen? Pen has Mode, which could have a new mode for alphablend, although I'm not sure if this is desirable... and brush has no mode.

Better introduce alphablend, I think. As you say, brush has no mode.

Michael.

Reply by email