Color Filter

.NET Edition of the F-IN-BOX
vsesh02
Posts: 23
Joined: Mon Oct 12, 2009 7:51 am

Color Filter

Postby vsesh02 » Wed Nov 18, 2009 12:45 pm

Is it possible to show flash through any color filter? I can not impose anything on top, as flash dynamic

vsesh02
Posts: 23
Joined: Mon Oct 12, 2009 7:51 am

Postby vsesh02 » Wed Nov 18, 2009 2:26 pm

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.
То есть перебирать все пиксели и менять их значения под определенный цвет

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Nov 18, 2009 2:57 pm

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.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

vsesh02
Posts: 23
Joined: Mon Oct 12, 2009 7:51 am

Postby vsesh02 » Wed Nov 18, 2009 3:31 pm

Судя по примерам, создается впечатление, что OnPaintStage может рисовать только за flash'ом.

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

vsesh02
Posts: 23
Joined: Mon Oct 12, 2009 7:51 am

Postby vsesh02 » Wed Nov 18, 2009 3:50 pm

а вот нашел
if (f_in_box__lib.PaintStage.AfterPaint == stage)

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Nov 18, 2009 4:02 pm

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


к сожалению, нельзя...
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

vsesh02
Posts: 23
Joined: Mon Oct 12, 2009 7:51 am

Postby vsesh02 » Thu Nov 19, 2009 8:44 am

Ну вот и придумал. Большое спасибо!

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);
}
}

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Nov 19, 2009 9:59 am

It's great! :)
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 9 guests