Opacity problems
-
hello, i've got problems with opacity in my splash. Informations to the inviroment: When I start my app a splash will shown with slowly fade-in effect. Like it matters if colordepth is 32bit or 16bit, the transparent/white area of my splash (its an non symmetric pictrue and in that reason i'd set the transparencykey to "white") fades-in in black color.. it should by transparent. when i turn the colordepth to 16bit or lower, and the image opacity is 100%, the unneeded area is transparent, if it is 32bit it's white.. what do i wrong?? greetings from germany and sry of my bad english =))
-
hello, i've got problems with opacity in my splash. Informations to the inviroment: When I start my app a splash will shown with slowly fade-in effect. Like it matters if colordepth is 32bit or 16bit, the transparent/white area of my splash (its an non symmetric pictrue and in that reason i'd set the transparencykey to "white") fades-in in black color.. it should by transparent. when i turn the colordepth to 16bit or lower, and the image opacity is 100%, the unneeded area is transparent, if it is 32bit it's white.. what do i wrong?? greetings from germany and sry of my bad english =))
Hello, Combining Transparents and Opacity doesn't work. (.Net 1.1) :(( Also had a lot of bad days because of that. What you can do is, after the "fading" is finished (opacity is 100%), you could call a method like that:
using System.Drawing;
public void MakeBackgroundTransparent()
{
Bitmap Img = new Bitmap(this.BackgroundImage);
Img.MakeTransparent(Img.GetPixel(0,0)); //Set the coordinates to a point where the transparent color is
this.BackgroundImage = Img;
}Hope that helps, Martin
-
Hello, Combining Transparents and Opacity doesn't work. (.Net 1.1) :(( Also had a lot of bad days because of that. What you can do is, after the "fading" is finished (opacity is 100%), you could call a method like that:
using System.Drawing;
public void MakeBackgroundTransparent()
{
Bitmap Img = new Bitmap(this.BackgroundImage);
Img.MakeTransparent(Img.GetPixel(0,0)); //Set the coordinates to a point where the transparent color is
this.BackgroundImage = Img;
}Hope that helps, Martin
-
Hello Martin, thanks for fast answering. I developing with .Net 2.0 - why dosen't work? Is there a workaround? The code wouldn't work.. not at 32bit resolution.. greetings Jerry
Hello,
b43r_3oo3 wrote:
thanks for fast answering. I developing with .Net 2.0 - why dosen't work? Is there a workaround?
I only know the one I told you.
b43r_3oo3 wrote:
The code wouldn't work.. not at 32bit resolution..
I'm using 32bit resolution and it works for me. What I found out is that the TransparencyKey property doesn't work on every hardware with 32 bit. If you google for that problem you will find a lot of people sharing this problem. All the best, Martin
-
Hello,
b43r_3oo3 wrote:
thanks for fast answering. I developing with .Net 2.0 - why dosen't work? Is there a workaround?
I only know the one I told you.
b43r_3oo3 wrote:
The code wouldn't work.. not at 32bit resolution..
I'm using 32bit resolution and it works for me. What I found out is that the TransparencyKey property doesn't work on every hardware with 32 bit. If you google for that problem you will find a lot of people sharing this problem. All the best, Martin