ari
ari

Reputation: 295

ColorMatrix equivalent on the WP7?

Specifically, I'm trying to port some C# code to windows phone platform. I've come across a number of articles recommending using custom pixel shaders with XNA, but that isn't supported on the WP7 platform. I can always write my own matrix transformation library, but I'd prefer to use built in libraries.

My question is, is there a recommended way for doing color transformations using matrices on an image on a wp7 device?

Any help would be appreciated.

Upvotes: 0

Views: 281

Answers (1)

keyboardP
keyboardP

Reputation: 69372

If I'm correctly understanding what you want, I think you'll want to take at the WriteableBitmapEx library. It's very efficient and has a lot of effects out of the box. If you want more custom drawing routines, you could use this library to read and write pixel data whilst using XNA's Matrix class to perform the data calculations.

Upvotes: 1

Related Questions