Prev: CAB-Installer
Next: Forum?
From: Chris Tacke, MVP on
I'm a little late in responding, but there's a very comprehensive example
here:

http://resistance.codeplex.com


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com



"Peter Carlson" <peter(a)h_o_w_u_d_o_d_a_t.com> wrote in message
news:%2362C1aylKHA.1652(a)TK2MSFTNGP05.phx.gbl...
>I have searched all the articles and tried various things, but cant seem to
>get this to work. CF 3.5 targetting Winmo 6+. I have a png in a
>picturebox. Then I have another png that is transparent. the background
>is a compass frame and the foreground is the compass rose. I update the
>image like this:
>
> Bitmap b2 = Properties.Resources.pngRose;
> Graphics gpCompass = Graphics.FromImage(pbCompass.Image);
> gpCompass.DrawImage(b2, 0, 0,
> new Rectangle(0, 0, b2.Width, b2.Height),
> GraphicsUnit.Pixel );
> pbCompass.Refresh();
>
> However it draws the rose with a solid white background.
>
> So I thought maybe I need to load the png from a file, but I am not sure
> how to do this in the emulator?
>
> So 2 questions:
> 1. can this be done by embedding the resource?
> 2. Where do I place the png in the file system of the project in order to
> get it onto the emulator?
>
> Peter

First  |  Prev  | 
Pages: 1 2
Prev: CAB-Installer
Next: Forum?