xaoc Posted November 28, 2008 Share Posted November 28, 2008 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. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted December 3, 2008 Share Posted December 3, 2008 This isn't a supported scenario at all. You're doing something the effect system isn't meant to be used for. Thus, we can't really help you. Sorry. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.