Armel Asselin:

there could be a global API telling 'ActivateAlphaBlending( )' or such???
and have regular alpha meaning for the alpha chanel?

  Due to the slower performance of translucent drawing it should be
more selective. This could be more noticeable if it is expanded in the
future so that, for example, the selection could be translucent.
uh oh :) far from me the idea to have full alpha blending on every bit of code, however this could activate the 'semantic'... I mean, without that scintilla could force all colors to be opaque. If set it would let the user choose and even in this case, as most of what we draw are monochromous surfaces (or nearly), Scintilla code could easily do that (or similar):
void DrawRect(Color c, Rect r)
{
 if (c.IsOpaque( ))
   DrawOpaqueRect(c, r);
 else
   DrawAlphaBlendedRect(c, r);
}

you would get alpha blending where you want, at no cost for whom does not do alpha blending

Armel


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to