This project is read-only.

ColorMatrix + ImageAnimator = No animation?

Topics: Developer Forum
Jun 29, 2006 at 3:24 PM
Has anyone seen why if you apply a ColorMatirx to the DrawImage method the ImageAnimator fails to use the correct image in the stack?

Basically the first image is always used. Without applying a ColorMatrix to DrawImage the correct image is used.
Jul 17, 2006 at 8:51 PM
Can you post some code? I haven't had that issue ...
Jul 30, 2006 at 4:14 PM
Sorry, I missed that you had posted this. Here is the source code.

ColorMatrix colorMatrix = new ColorMatrix();
colorMatrix.Matrix33 = (this.Alpha / 255.0f); //33 is alpha

ImageAttributes imageAttributes = new ImageAttributes();


It is in GradientCaptionRender.cs in the public override void Render(System.Windows.Forms.PaintEventArgs e) method. I figure their must be another setting in the color matrix that needs to be set but ColorMatrix is not well documented.