Jump to content

xaoc

Newbies
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

xaoc's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I'm blocking preview render and background render following way: EffectPluginConfigDialog.cs : private void buttonOK_Click(object sender, EventArgs e) { ((EffectPluginConfigToken)EffectToken).ButtonOKPressed = ButtonOKPressed = true; FinishTokenUpdate(); DialogResult = DialogResult.OK; this.Close(); } EffectPlugin.cs : bool locked = false; public override void Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, int startIndex, int length) { EffectPluginConfigToken castedParams = (EffectPluginConfigToken)parameters; //here I block preview render if (!castedParams.ButtonOKPressed) { return; } //here I block background render if (locked) return; locked = true; .......... } My effect algoritm works on whole image so there is no reson to render in parts. I'm looking for the propriate way to get the same result, that make the code given above.
×
×
  • Create New...