VS 2010 PictureBox - How To Make Image Transparent
Oct 28, 2009
I'm having problems making an image properly "transparent"
Dim x As Integer
Dim y As Integer
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
[Code] .....
The initial image is Transparent, however, once you create another image very close to it, there is a "box" around it. That "box" is what I am trying to get rid of. I have no clue on how to get rid of it. Yes, I have made the image itself, transparent, as the initial image is transparent. Just any image that makes contact with the other images show the "box".
View 5 Replies
ADVERTISEMENT
Feb 14, 2010
I'm trying to make an image in a picturebox transparent, so that i can see and click the controls behind it in the transparent area. This reason for this is that i'm trying to make a hexagonal grid that needs each cell to work independantly of each other when clicked, and needs to include a changing image. I'm trying to do this with pictureboxes, but even though i've made the GIF images i'm using transparent in photoshop, They aren't displayed as such in design view or at runtime, as the corners stay grey. I'm making a clone of the Quiz-show Blockbusters
View 6 Replies
May 5, 2012
is it possible to make one picturebox transparent, so you see the picturebox' picture underneath it?
View 2 Replies
Feb 9, 2012
I started off with a VERY simple form and added a picturebox item to it. The code I was following used a procedure in the Form1.vb to override the transparent color of the image:
bmp.MakeTransparent(Color.Fuchsia)
bmp was defined in the Form's "Load" section.
Now things are different. I have more than 20 picturebox items now, each created in the Form1.Designer.vb code as follows:
Me.Tile020.Image = CType(resources.GetObject("Tile020.Image"), System.Drawing.Image)
Me.Tile020.Location = New System.Drawing.Point(922, 297)
Me.Tile020.Name = "Tile020"
Me.Tile020.Size = New System.Drawing.Size(64, 64)
Me.Tile020.TabIndex = 3
Me.Tile020.TabStop = False
The image is referenced from the resources. When I run the program, I'd like all these images to have their backgrounds transparent. None of these controls is currently referenced anywhere in the code at present. What's the best way to get them to display transparently, other than recreating them as transparent .PNG's?
View 2 Replies
Nov 7, 2010
I am working on my game maker and I need to make it so that a picturebox with a transparent image will show the control behind it, like if the control has a image or just a color.
View 12 Replies
Feb 26, 2010
Im displaying an image in a picturebox when i mouse over a button PictureBox1.Image = (My.Resources. Get_Info_icon) But when the mouse leaves the button how do i remove the image and have a transparent background, so u cant actually see the picturebox ?
View 1 Replies
Jun 10, 2012
I have two Picturebox and both should be transparent background, but the real problem is both transparent for form background but not over each other .
View 1 Replies
Dec 8, 2009
How can I make a picturebox transparent?
View 8 Replies
Jun 12, 2009
I have a small picturebox(34x34 pixels) and want to have a transparent label(maybe 12x12 or 15x15 pixels) in the corner of it, which will be used as a counter.
I saw another forums suggesting adding the PictureBox as a parent to the Label, like this:
Label1.Parent = PictureBox1
Label1.BackColor = Color.Transparent
But then the label just disappears, and no text is displayed.
View 8 Replies
Nov 25, 2009
Why is it that I can't seem to make a picturebox transparent? I just can't seem to figure it out, I set the back color to transparent, I even made a color in my image transparent but still no results. I've been able to make the back transparent before.
View 1 Replies
Aug 23, 2009
i am making a program with graphics and im using a picturebox for a button. The image inside picturebox is transparent .gif. The problem is that i don't know how to make picturebox transparent. I searched the internet but all exaples didn't work. Does someone know how to fix this problem?
View 4 Replies
Apr 13, 2010
I want to use a PictureBox2 (pic.png) above PictureBox1 (pic.jpg) on VB I used this code:
PictureBox2.BackColor = Color.Transparent
PictureBox2.BorderStyle = BorderStyle.None
but it doesn't work
it makes the border black & white
View 4 Replies
Mar 27, 2010
I'm having a problem with making the Picturebox Transparent to the a Image layered underneath I'm getting tranparent to the form background color. Is there a Visual Basic Code Solution to achieve these properties? I used the imagebox in Visual Basic 6 and had no problem with this.
View 2 Replies
Apr 12, 2010
I know that this question has already been asked million of times, but until now I haven't found a WORKING way to make this to work.I've a Media Player control, and in front of it (for a logo thing), I have a PictureBox, that I want to make transparent. I've tried million of things, but couldn't get it to work.
View 31 Replies
Apr 12, 2011
I'm playing with some new UI for one of my projects. I have created a digital display board in Photoshop and added a Picturebox in my VB project and used that image in it.But what I want to do is, I'll be displaying some text above that image. When I tried placing a LabelBox and setting it's BackColor to Transparent, doesn't work !
The text in the LabelBox will be changing each second. So, what I'm doing is using a Timer control with 1000 as interval and displaying the text.What will be the solution ? Do I have to draw the text on the picturebox on Paint event ?
View 8 Replies
Apr 7, 2009
I wish to make a bitmap image (.bmp) transparent using VB.NET code.
View 3 Replies
May 28, 2012
what would be the fastest (best) way to make transparent all pixels in one image that are white on other image?
Let's say that have 2 transparent images (.png) and want to delete some portion of the first image. Pixels to be deleted (made transparent) are defined as white on the other image (some kind of deleting mask).
View 3 Replies
Aug 29, 2010
i need to know the code for making images inside my forms slightly transparent so I can still see the form behind it.
View 1 Replies
Jul 26, 2010
I have a code that takes the pink out of a image and makes it transperent. So its just the image no color around it. How do i make a shadow for that image like below to make it look like it has its own shadow?
View 9 Replies
Nov 18, 2008
how i can make a picture box with an image in semi transparent like a watermark that you can see through to what is behind it.
View 4 Replies
May 20, 2011
I'm attempting to write a solution so that my user's can "watermark" their Images with their Company Logo. I've got the actual watermarking part done and working so now I'm creating the "upload logo" feature so that they can provide me with the Logo they wish to appear watermarked onto their Images.I'm using VB.NET and this will probably end up in a Web Service that accepts the Logo JPG file, and returns the "altered" Logo. What I need to happen in this Web Service is:
1) Gray-scale the image. Which I have working as well, thanks to this article.
2) Make the background transparent (so the logo looks clean when watermarked onto an image). This is where I'm stuck.
I think for the most part, any logos that are uploaded will have a generic white background but I can't assume that. Is there a way to somehow detect the background of an image or the background colors, so that I may make those colors transparent?So basically what I need is just a way to determine the background on an Image or even just the background colors so that I may make them transparent.
View 3 Replies
May 23, 2010
i have a image with four squares evenly spaced out. I want a picturebox's image to be one of the squares at a time so it's like a animation except it's only one image.
View 7 Replies
Jan 31, 2011
I need to plot some analog values read from the serial port.I plot them in a picturebox starting from left. When I reach the end of the control at the right side I shift all values to the left of a point and I plot the new point at the right, (I have some flickering but it could be acceptable). This is my plotting control.My problem is that I have to clear the control (picturebox) in order to plot the shifted graph, but the method Clear of the Graphics class clears everything inside the picturebox, even my grid.How can i make always visible a grid "in" my picturebox?
1.a transparent image with a grid over the PB? (the clear method cannot remove it)
2.an image with a grid below the picturebox that must be with a transparent background to make visible the grid?
3.multiple layers on the same picturebox?
View 5 Replies
Mar 19, 2012
I have code for make the usercontrol transparent:
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
cp.ExStyle = cp.ExStyle Or &H20
'WS_EX_TRANSPARENT
[Code] ......
These code shows the usercontrol transparent. But when the control moves I see that these control needs time to be transparent or drawing an image. Why so many time(maybe 2 seconds)? And why I can't use directions keys on keydown event? (The arrow keys are ignored).
View 1 Replies
Dec 10, 2011
I have a little "designing" problem in VB 2010. So, I made a cool abstract background for my application in Photoshop. And I wanted to make the form transparent and BorderLess. But, in order to imitate Windows, I also had to put in a very small black outer glow. So, I made the BackColor in a DarkGreen, then the same for the TranksparencyKey. BUT, because of the outer glow, now it looks like this:
[Code]...
View 2 Replies
Mar 10, 2011
I'm making a software where I need to have a transparent background in my form and then 50% transparent control. I don't know how to make the control 50% transparent without getting the back color from the form as back color.
View 3 Replies
Jun 24, 2011
I know you can make certain parts of a form transparent by setting the transparencyKey of the form to the color of your choice.
vb.net
Me.MdiParent.TransparencyKey = Color.Fuchsia
Me.BackColor = Color.Fuchsia
Once I set the form to be a MDI Container, it seems to just ignore that function.
On my MDI Container form I have a menu and that is the only thing I want displayed. I want the container itself to be transparent. The forms that get loaded into the mdicontainer will be shown normal.
View 2 Replies
Jan 7, 2012
Is it possible in VB 2010 that you can make an "App" on the desktop.Attached Image:This image is made in photoshop, but as its show at the picture, this is how it should work like in VB. Where you can see through the "battery glass". i have tried with"Opacity" and "TransparencyKey", they do not work for what I want.
View 9 Replies
Dec 9, 2009
is there a way to change the size picture (scale the image according my size 300 x 150). Let say an user upload an image with (500 x 300), using picturebox, can i scale the image (500 x 300) to my picturebox size so that it can looks perfectly nice
View 2 Replies
Aug 2, 2010
I am needing to take an image from my Picturebox and make it into a stream so I can send it to a website. In otherwords, I have an image in my picturebox, and I am trying to pass it along to a server without actually downloading it to my computer. I am trying to do this in a JPG format if possible as well.
View 3 Replies