Simon Brown Posted February 21, 2008 Share Posted February 21, 2008 How do you access the config token in the render method override? I cannot seem to find the object in intellisense while in that method. Quote Link to comment Share on other sites More sharing options...
I Like Pi Posted February 21, 2008 Share Posted February 21, 2008 If you're referring the the property based effect class or the generic effect class added in 3.20, there's a property called "Token." Look at Effect`1.cs for details. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted February 21, 2008 Author Share Posted February 21, 2008 The Generic class. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted February 21, 2008 Share Posted February 21, 2008 You generally shouldn't access the token during OnRender(). You should copy data from it in OnSetRenderInfo() in to local fields that are thread-safe. Then, access those fields from OnRender(). BoltBait or Madjik should have plenty of examples on how to properly structure things. 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.