By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,902 Members | 1,323 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,902 IT Pros & Developers. It's quick & easy.

VC++/GDI+ Imageattributes.SetColorMatrix

P: 1
Hello All,

I am running into a problem when using SetColorMatrix method in ImageAttributes class of GDI+ inside my VC++ code.

I am creating a color matrix and then for changing contrast of color image, I am doing a scaling on color matrix. Now I am applying this matrix to image attributes by using setcolormatrix call. After this I am seeing that CPU utilization reaches 100% and rest everything does not work as expected. Can we implement this in different way or this is the only method? Am I doing anything wrong?

Do I have to dispose the image attributes after I finish draw image call? If yes, then how can I accomplish this in VC++? I tried doing Reset after drawing this clears the contrast manipulation done but good thing is that it does not overload the CPU.

I am confused, anyone...please assist.

Thank you

Arvind G
May 23 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.