tlbrack
tlbrack

Reputation: 926

How can I get the PixelFormat of a Bitmap using .NET CF 2.0?

I'm trying to speed up performance of some image scaling & coloring routines in a mobile app based on .Net compact framework 2.0. I've discovered the Bitmap.LockBits method, but how can I get a Bitmap's PixelFormat when the PixelFormat property is not supported in the compact framework?

Upvotes: 0

Views: 1364

Answers (2)

Sesh
Sesh

Reputation: 6182

Here is an example of adding something that is not by default supported by .netCF. You can try the same approach.

http://blogs.msdn.com/chrislorton/archive/2006/04/07/570649.aspx

Upvotes: 0

Tom van Enckevort
Tom van Enckevort

Reputation: 4198

The OpenNetCF Framework contains a BitmapData class that implements the PixelFormat property.

Upvotes: 1

Related Questions