Transparency Works Only At 16 Bit Color?
Apr 24, 2012I've read that using TransparencyKey on a form (for the creation of non-linear forms) only works with color density at 16 bit.
I've tried it a 32 and 16 and found it to be true.
I've read that using TransparencyKey on a form (for the creation of non-linear forms) only works with color density at 16 bit.
I've tried it a 32 and 16 and found it to be true.
I found a tutorial for DirectDraw online and can get a sprite shown on the screen. Problem is that when I try to make the edges transparent nothing I have tried works. Here is the code
Code:
Public Sub InitializeGraphics()
GraphicsCard = New Device 'This will initi
[code]......
The 1st problem: I set the transparency key to a color and then set the forms background color to that color, and then set the background image to an image with rounded edges to give my form rounded edged. But the corners look VERY jagged.
The 2nd problem: Is there a way to make a form appear in the lower right corner above the task bar? Kind of like Avasts virus database definition update window.
How can I make a graphic saved in jpeg format turn into a different jpeg? Also, How can I set an invisible background colour?
View 6 RepliesI used my forms TransparencyKey property to make the form background invisible, but to keep the controls 100% visible. But, when I add a label onto the form, a border or outline shows up around the text (doesn't matter which color I do it with). My friend says that this isn't fixable and he said that it doesn't happen in VB6. I'm tempted to remake the project in VB6, but Windows 7 is being released soon and compatibility is a must.
What about C#? Does the issue occur as well? If not I'll just go with that.
i'm back with even more problems on my project. as you remember i'm trying to extract from the picture the percentage of white color. the code so far is in previous posts, but there are two things that concern me:a) the transparent pixelsb) the opacity (the a element in rgba)
[Code]...
I've tried adding a splash screen ]...to one of my applications and after exploring a while I somehow managed to get it working what bugs me now is that my splash screen is in fact a image inside a picture box and the form always shows the control color behind so what I tried is adding the form color to the transparency key this worked, somehow now, I use a png image that has some transparent effect also what I've noticed is that where I would want to show the transparent effect from the image the transparent color that is set in the forum shows below is the image to get my point of view:
I'm wondering if I can remove that "pink" color (set by me in the forum) from the image .I want to get a effect like the one Adobe products have for example
I have a spreadsheet with this code:
'insert link
sheet1.Hyperlinks.Add(sheet1.Range("P1"), "http://http://www.vbforums.com", "")
the code of the button (ribbon)
[CODE]...
When I press the button, it connects to the web site. when the sheet1 is selected, it works, but when the sheet2 is selected, not works, why? the path is sheet1,What's wrong?
this is my code:
Dim WB As WebBrowser
WB = GetPage("http://speed.travian.ir/a2b.php?z=" + VillageID.ToString + "&c=" + Type.ToString + "&" + AttackParams)
[code].....
When i run my code, the picture box has a background colour, even though I have set the background colour to transparent in the properties window.
View 1 Replieshow can i control swf background transparency in vb.net either with flash.ocx or if there is any other way.so that if i have a swf animation block with red in background and some text written with yellow. now how can i remove that red background in vb.net.actually i want to make a system so that i can choose any color as transparency key for swf like in tv channels logos.
View 2 Replieshow you can get image transparency to come through in Visual Basic? Because if you try to put an image with some transparent sections on it on a form, the transparency turns into the form background colour (Though you could change the background image to whatever you want displayed under the image, but that's not the point) and basically I can't find any way to do irregular transparencies.
Alright, that's not very simple. I'll try to give an example:
You have an animated GIF of...say...fireworks. And it has a transparent background. Now say you have a few labels with text in them. When you draw the picturebox over the labels, the text in the labels is covered by the background of the fireworks, even though it's transparent. You can't see the labels. You want to see the fireworks exploding over the text
I can't see any way of getting around this, other than doing it in another program and putting the text and fireworks into one PictureBox. but it would be so convenient if it could work in Visual Basic, because you can control the text the in the labels and keep the animated "fireworks" exploding at the same time without using multiple animated images.
Is it possible to have transparency on a form but not on a button on the form?I know transparency can be controlled for the form in properties (VB 2005), but how can we isolate the button from being affected?
View 2 RepliesRight now I currently have an array of pictureboxes, and over them I want another large picturebox that has a sort of transparent fog effect. I created a png with this and made sure to save the alpha transparency, however when the picturebox shows up, you are not able to see underneath it. Is there anyway to fix this without using the GDI instead of pictureboxes? Because of the way the program is set up, I think GDI would be too slow for my purposes.
View 1 RepliesIve been on the same thing for the past seven hours now. Im trying to ether get the MDI child form title-bar-less in maximized mode, or now, get the transparency working to where the MDI child has transparency. ) This is for a home automation system im working on. major alpha stages. Hardware control works ;) but this stupid GUI is kicking my butt. So three options i have. In maximize mode on the MDI child remove the title bar, or remove the parents scroll bar so i can make the MDI child the size of the parents MDI window, or make the MDI child transparency work. Im posting a screen shot to show you what im talking about.
[Code]...
The member of this comunity, Keymaf, help-me to do a DLL with PNG files and with any other type of file. But now, there is another problem. The transparency of PNG are not enabled when loaded in my project.
View 4 RepliesI have a 8 bit Gif, that is transparent, with controls sitting on top of it, all in a custom control. This part works fine. However, This control is a menu ring (appears around another control with a few options). The transparent part is over a Picbox, that is in a panel. The transparent part of the image seems to skip the picbox and go right through to the panel. I set the panel to a back color of RED. The custom control when its placed instead of showing the image in the pic box that it is on top of, it shows the RED panel I have made sure all my Z orders are right.
View 5 RepliesI've been trying to figure out how to create transparency in a sprite, i.e. with the use of a mask. Problem is, every tutorial I could find was either completely irrelevant or for freaking Visual Basic 1858.
View 1 RepliesI search for a grand total of about four hours online for a method of how to get transparency working in labels in VB.NET 2008. After finding nothing but some example that I have no idea how to implement into my project, I have almost given up. Yes, I've heard about setting the parent properties, but in my case it is imperative that I have labels on top of a PictureBox. (Apparently it's not possible through normal means to have transparent labels over PictureBoxes.)I'm losing my patience with VB.NET, even considering switching back to VB6. How could Microsoft make such a stupid decision? Today I decided to use a stupendous workaround and instead of labels, use transparent PNGs of bitmap text. And guess what? It has the exact same problem as the labels when placed in front of controls! The transparent background has been set to the colour of the form's background!
View 5 RepliesMy problem is when I develop my own applications in Visual Basic 2008/2010 with the Aero interface, I cannot see the text both on the form and in components. After researching on the internet, I have come to a dead end. Is there a way of fixing
View 2 RepliesI'm trying to create a program using Visual Basic .NET 2010 that alters the use of my media keys - Volume up, Volume down, Play, etc. All of the example I have found don't seem to compile quite correctly in 2010. Don't get me wrong they run fine and look exactly as specified but the problem is that the form cannot be edited because it claims the designer code is ill-formatted or something along the lines of that.
Can anybody possibly spare a project or form that has perpixel alpha transperancy?The only thing i want to do is show an overlayed png that has an alpha channel, on the desktop. The form border style will most certainly be "NoBorder"
i got a large picture box sent to the back with a default image.i got a few picture boxes set to transparent and they are placed in front of that large picture box. these picture boxes have no images, just set to transparent in the properties.
I use the mousehover event on those picture boxes so when one is hovered over, it will change the image of the large picture box which is behind it.the problem is that even though those picture boxes in front have been set to transparent, when the large picture box behind them loaps a new image due to an event, it doesnt show through those picture boxes which are in front of it!
I have a windows form application where there are several circles that need to be moved around the form at random. I have tried doing this with pictureboxes, as well as ovalshapes.
When I use a picturebox, the corners of the image (which should be transparent) show as the same color of the form, when they should show what is underneath (which could be another circle).
I do not have this problem when I use an ovalshape. However, two of my circles need to have a star on them and I can't seem to figure out a way to do that because I can't get a transparent background. I've tried a transparent background image and a transparent background label and nothing seems to work.
I am making an image modifying program and would like to know how (after I have located the .png, .gif, .bmp etc) I can identify the properties of a certain pixel (RGB and the amount of transparency), how to change the colour of a pixel (similar to first part) and how to tell the program to "move along to the next pixel, unless you are at the end of the image, in which case; move down a row and continue" please help. Also, it is a program which converts a greyscale image (black, white and grey) to black, semi-transparent black and transparency). Just in case that helps.
View 1 Repliesi know there is an option for the whole form to be transparent but each control?
View 3 RepliesI have created a toolbar on my form and added icons (.ico or .png) such as New, Open, Save, etc. I can't seem to find out how to make my icons transparent so I don't have the white background displayed on the icons.
View 2 Repliesi need to set the transparency of a bitmap using a trackbar. how can i do this? if i change the value of the trackbar, the image's transparency will change.
View 1 RepliesI would like to drop a few buttons onto a picture box or a container control that has a background image set.
I would like to have the button's image be an alpha PNG file.
I can manage the mouse over and click such that the button behaves exactly as one does on a web page.
I struggled with it in vb.net 2005 with no luck. If you take a PictureBox and lay it on top of another PictureBox, and set its images to alpha PNG's, and its background to transparent, then the form shows up in the alpha blend, not the other picture box.
And if i accept that i am limited to the background of the form, then it's performance then becomes unacceptable.Since i can Graphics.DrawImage onto a PictureBox's image fast, i assume that the folks at Microsoft must have decided to use the form's background (and slow painting, and not the other controls and the z-order), by design. I cannot for the life of me figure out why they have made that choice.
So my question is this:Does vb.net 2010 support the layering of controls that supports alpha transparency, and can we now create a custom-control with a transparent background?
how can i set the transparency of a bitmap that is displayed on the picturebox, i am making a digital makeup software and i want my makeup's tints or colors be reduced or increased. this is the code of that
Public Class foundationfrm
Private SelectedFoundation As Foundation
Private MouseIsDown As Boolean
[Code].....
I want to try an simulate a fake lighting system in Visual Basic 2010 by using 2 images.One is Form1's background, and the other is Picturebox2's image. Picturebox2's image is a black background with a transparent circle in the middle.The only problem is, when transparent, it shows the background of the form, and looks right through the background image.How could I get around this so that the transparent part of the image is Form1's background image, and not the backcolor?
View 4 Replies