Okay m8s!
Could this be a bug or am i doing something wrong?
I want to set transparent color with the values: 255, 0, 255.
This is my code:
Image balloon = new Image("balloon_red.jpg");
balloon.SetColorKey(System.Drawing.Color.FromArgb(255, 0, 255));
But the color is displayed instead of making it transparent.
Any help appreciated.
Best regards,
Yerrel
Yo!
I've just solved this problem.
It's a bit odd though. but anyhow this is how i work-around it:
// First declare Balloon with empty-string.
Image balloon = new Image("");
// Than use the command for it
balloon.SetColorKey(System.Drawing.Color.FromArgb(255, 0, 255));
balloon = new Image("balloon_red.bmp");
Is this a bug or what? The manual stated that the SetColor() must be used before loading etc.. but this command cannot be instantiated with just Image.SetColorKey().
Very frustrating indeed!
Anyhow! if someone out there have a fix for this than please post it!
Best regards,
Yerrel
MSI K8T NEO-2 F2.0, 8XAGP, 2x512Mb Dual Channel... Dark GDK..... http://www.binary-coder.com