Cursor is Black?

G

gwoodhouse

Hello,

Im using VS 2005, ive created a cursor file, deleted all the "layers"
appart from 32x32 256 colors and added the image. I saved it and set
it to be embedded as a resource.

I use this line to call it:

this.Cursor = new Cursor(GetType(), "Pencil.cur");

But the cursor is a silloette of my image (seems to be displaying in
black/white). Why is this happening?

Thanks

Graeme
 
N

Nicholas Paldino [.NET/C# MVP]

Graeme,

What platform are you running on? It's probably because cursors don't
support that resolution/bits per pixel combination.

You probably need something 16x16 and 256 colors (or even 16).

Do you really need a cursor THAT big and with that many colors?
 
G

gwoodhouse

I'm running on Windows XP.

I think the problem may be because im copy pasting from a 32bit source
and the editor in VS doesnt dampen the image down to the correct
color's.

Does anybody know any good (and free) programs that will allow me to
create .cur files?

Graeme
 

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

Top