ForeverZer0 44 Report post Posted February 20, 2012 I am trying to emulate a similar feature to that of RMXP's "blend_type" for the Sprite class, and I can't seem to get it quite right. I was curious, does anyone know the calculation that is performed to do the addition and subtraction blends on an image? I'm using C#, and have been getting familiar with the ColorMatrix class, have created functions for altering brightness, saturation, color blending, opacity, color shearing, contrast, etc., but fail at this seemingly simple function. I am using for creating a small utility for RMXP, and it is kinda important that it is accurate to the method that RMXP uses. This is basically the final thing to implement, and I can finish up pretty quickly after that. Share this post Link to post Share on other sites
Moonpearl 32 Report post Posted February 20, 2012 Isn't it simple RGB addition/substraction? This seems to make sense to me since in Add mode, black is neutral, while white is neutral in Sub mode. Share this post Link to post Share on other sites
ForeverZer0 44 Report post Posted February 21, 2012 I believe it is. I'm just trying to find the correct value at the moment. Should be pretty simple with a matrix transformation if that;s all more it is. I believe I was just over-thinking it... :P Share this post Link to post Share on other sites
Moonpearl 32 Report post Posted February 21, 2012 Sometimes it's the simplest things we forget first. Take my students for instance, most of them can calculate a derivative and stuff like that, but cannot do additions anymore. Share this post Link to post Share on other sites