Splash screen dilemma [Resolved]
Well, I'm trying to make a splash screen but one like Photoshop has. Not exactly, but similar. I Photoshopped a graphic with a sqare where I can put information, but the trouble is, the graphics which are not in the square. I left some WHITE space around the square and put some graphics on the outside of it. I saved the image and imported it into the form I made which is just a blank non-resizeable form. I was kinda hoping that setting the transparacy key to White would also work on the picture, but I was mistaken. It appears that the white border appears. If you can't visualise the splash I want to achieve, think along the lines of Adobe Acrobat.
What I want to know is, is it possible to make VB.NET exclude the white in my background image while not showing the form behind the image after the white is removed? I can't think of a solution, maybe you guys can help me. Thanks :thumb:
Re: Splash screen dilemma
If you set the Transparency key to white and the background color of the form to white you get an invisible form.
If you want your image to be transparent as well and this doesn't work for the image you can load the image as a bitmap and then make the bitmap transparent like this:
VB Code:
Dim MyBitmap As Bitmap = Image.FromFile("C:\t.bmp")
MyBitmap.MakeTransparent(Color.White)
'Then assign draw the image to the control in the form paint event or however you wish
I hope this helps,
Re: Splash screen dilemma
BTW I just went through creating a SplashScreen. Getting it to work like Adobe's is a B*$%h. You have to use a new thread. If you need help feel free to let me know.
Re: Splash screen dilemma
Thanks for the quick help :cool: But the result isn't quite what I intended. you see... It managed to get rid of the white, but what happened instead is that it basically but black where the white once was. :ehh:
Re: Splash screen dilemma
Are you seeing the white on the form or the image?
Re: Splash screen dilemma
Maybe I'll jut post screen shots :) The thing is I'm not seeing any white.
Is:
http://venus.walagata.com/w/fateist/is.png
Should:
http://venus.walagata.com/w/fateist/should.png
What I did on "Should" is I removed the background so the white border is gone. But just for the picture you see so you know what I want to exclude. The whie is there in splash.bmp which is what I loaded.
Re: Splash screen dilemma
If I can't get it to work properly, then I guess I can just shrink the Ticks to fit in the square...
1 Attachment(s)
Re: Splash screen dilemma
Here is a complete project that should work for you.
Let me know how it works out. :wave:
To give credit where credit is due: I got quite a bit of help on this earlier from Aaron Young in this thread: http://www.vbforums.com/showthread.php?t=332290
Re: Splash screen dilemma
Ah! Thanks! That should help me solve the problem :bigyello:
The page which you gave the link to, well, I saved that page yesterday onto my comp. I just remembered now that I have it. Thanks again. This saved me a load of hassle and helps me learn some new stuff in the process. :D