ColorMatrix + ImageAnimator = No animation?

Topics: Developer Forum
Coordinator
Jun 29, 2006 at 2: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.
Developer
Jul 17, 2006 at 7:51 PM
Can you post some code? I haven't had that issue ...
Coordinator
Jul 30, 2006 at 3: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();



imageAttributes.SetColorMatrix(colorMatrix);

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.

Thanks,
scorn