GetColorPalette and BitmapData

J

Jeroen Ceuppens

Hi,

Does anybody know how i can write easy methods that replace the
GetColorPalette and BitmapData from the Full Framework.......

I need the functions because I get a bmp, i have to change the colormap from
it......

Also in some parts, the bmp pixel data must be set, because that data i get
from an extern source...

Hope you can help me or give me some good sites about drawing in compact
framework

Greetz
JC
 
G

Geoff Schwab [MSFT]

Hi Jeroen,

There is no easy method for doing this under the .NET Compact Framework.
You will have to either write your own bitmap class that loads and modifies
the bitmap, or load it into a Control and use CreateDIBSection to access the
data.

There is a sample that takes a bitmap from a control and saves it to a file.
Some of this code may be useful since it encapsulates the .bmp file format.
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/scibf.asp

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jeroen Ceuppens

Thx, it is really great stuff!

greetz
JC
Geoff Schwab said:
Hi Jeroen,

There is no easy method for doing this under the .NET Compact Framework.
You will have to either write your own bitmap class that loads and modifies
the bitmap, or load it into a Control and use CreateDIBSection to access the
data.

There is a sample that takes a bitmap from a control and saves it to a file.
Some of this code may be useful since it encapsulates the .bmp file format.
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/scibf.asp

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top