Click here to Skip to main content
15,742,357 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I'd like to know how the ColorMatrix works in C#.
I need the algorithm of it, because of I want to write it to CUDA graphic card.
I searched for it, but I didn't find nothing, only the class of ColorMatrix.

Thank You for helping me!


1 solution


in this CP Article the transformation of RGBA values is well described, it should be clear how to write it in C (for CUDA), but it's not a weekend project.
You can also P/Invoke CUDA functions to use in .NET.

ColorMatrix Basics - Simple Image Color Adjustment[^]

With Best Regards
Share this answer
El_Codero 16-Apr-12 10:04am    
Please consider about accepting answer if this solution fits to you. Best Regards

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900