Page 1 of 1

Color Filter

Posted: Wed Nov 18, 2009 12:45 pm
by vsesh02
Is it possible to show flash through any color filter? I can not impose anything on top, as flash dynamic

Posted: Wed Nov 18, 2009 2:26 pm
by vsesh02
Can i do it with onFlashPaint event ?

Under the color filter, I had Enter the flash through the filter like color fill.
That is, through all the pixels and change their values under a certain color
--
Под цветовым фильтром я имел введу отображение flash через фильтр типа color fill.
То есть перебирать все пиксели и менять их значения под определенный цвет

Posted: Wed Nov 18, 2009 2:57 pm
by Softanics
Thank you for your question.

Try OnPaintStage:

http://www.f-in-box.com/dotnet/help/ind ... stage.html

This event is called for transparent mode only.

Thank you.

Posted: Wed Nov 18, 2009 3:31 pm
by vsesh02
Судя по примерам, создается впечатление, что OnPaintStage может рисовать только за flash'ом.

тогда другой вопрос можно ли принудительно увеличить прозрачность f_in_box_control ?

Posted: Wed Nov 18, 2009 3:50 pm
by vsesh02
а вот нашел
if (f_in_box__lib.PaintStage.AfterPaint == stage)

Posted: Wed Nov 18, 2009 4:02 pm
by Softanics
vsesh02 wrote:тогда другой вопрос можно ли принудительно увеличить прозрачность f_in_box_control ?


к сожалению, нельзя...

Posted: Thu Nov 19, 2009 8:44 am
by vsesh02
Ну вот и придумал. Большое спасибо!

private void f_in_box__control_OnPaintStage(object sender, f_in_box__lib.PaintStage stage, System.Drawing.Graphics Canvas)
{
if (f_in_box__lib.PaintStage.AfterPaint == stage)
{
f_in_box__lib.f_in_box__control f_in_box__control = (f_in_box__lib.f_in_box__control)sender;

Color bn = Color.FromArgb(100, 255, 0, 0);
SolidBrush bBrush = new SolidBrush(bn);
Rectangle[] rects = { new Rectangle(0, 0, f_in_box__control.Width, f_in_box__control.Height) };
Canvas.FillRectangles(bBrush, rects);
}
}

Posted: Thu Nov 19, 2009 9:59 am
by Softanics
It's great! :)