VS 2010 Control Transparency?

Mar 29, 2011

I've making a program that must crop 20 squares out of a larger image that is in a picturebox. Now I've created a Draggable rectangle control and set it's Background to transparent. This is working (kindof).

Now I have set my control to doublebuffered = true and it Removes tha annoying flicker.My problem is that doublebuffering creates a new problem. My control's parent is a picturebox with a large picture inside.When I move my control over the picture to select the area to be cropped it updates slowly I.E The control Is in a new area but it still displays the old area and then updates which is annoying.If you want to see for yourself create a new project with a picturebox with a Image inside with my Control as a child of the picturebox.

[Code]...

I have thought of possible solutions but they might well be much slower.#1 Copy the part of the picturebox that is under the control and paste it on my control.#2 Somehow eliminate the backcolor property thus eliminating the need to paint something over the control and only paint needed parts .

View 12 Replies


ADVERTISEMENT

'True' Control Transparency - Control With Motion Graphics (simplicity, A 'video Player' Control)

Dec 29, 2010

Here's my situation: I have a control with motion graphics (for the sake of simplicity, a 'video player' control) in my project. Think of a PictureBox with constantly-changing images. In front of this will sit a second control (such as a second PictureBox of the same dimensions). The topmost PictureBox will be drawn to in its Paint event.

I need to draw very few elements, and the bottom control is updated much more frequently than I need for this drawing. So these elements are drawn to the topmost control. Think of a news broadcast, where they have live video in the background, with a news channel logo, news ticker, and sometimes gradient visible in front.

I'm trying to create that 'foreground' control, and the closest I believe I have gotten so far is the following:

Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Drawing.Drawing2D

[CODE]...

The 'Opacity' property in the code above is a sort of "scaling factor." The image drawn to the top control may, in different parts of the image, have any alpha value from full transparent to a full 255. This 'Opacity' property is applied to the entire image being drawn, scaling the alpha values of each pixel.

See the following pictures for description:

[URL]
[URL]
[URL]

View 9 Replies

Create A New Custum Control Transparency?

Nov 18, 2010

This is my first attemt to create a new custom controll that I'll be spawning in runtime. I have written rendering onto a control before but this is the first time I made a real user control.

The problem at the moment is that when I set the backcolor of my custom control to transparent it doesn't take over the backcolor of the main form. Instead it just renders it solid black. Any idea why this might be?(I render everything in the onpaint method if you wonder)

I tried setting the ControlStyles.SupportsTransparentBackColor but that doesnt work for forms only for control derived types.

[Code]...

View 1 Replies

Form Transparency - Add A Control (like A Datagridview)

Jan 30, 2012

I used some code i found that extends the aero glass border across the entire form... looks great... however when i add a control (like a datagridview) it doesnt look right at all because of the transparency of the form...

View 5 Replies

Use A WPF Control In WinForms To Achieve Transparency Effects?

Feb 10, 2011

Is it possible to use WPF in WinForms, to implement the idea used in this question. I am trying to create a semi-transparent panel.

View 3 Replies

Make A User Control That Draws A Line And Adds Transparency Over A Form

Nov 12, 2010

I am an intern at a company doing Drawing Tools for their program. My supervisor is currently having me just make a user control that draws a line and adds transparency over a form. (I started this internship very early, so my knowledge is very limited compared to what it should be for a standard intern)

This is what I have so far:

Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
If MyBG Is Nothing Then
MyBG = New Bitmap(Me.Width, Me.Height)

[CODE]...

View 5 Replies

VS 2010 Maintaining Transparency?

May 24, 2012

One of my programs uses transparency so that the form is the shape of the background image (.png). My problem is that everything works and looks fine on the computer I'm developing on (Win7) but when I run the program on my other computer (XP), instead of the transparency I get the background color (which is the same as the transparency color). Does anyone have any experience this problem?

View 5 Replies

VS 2010 Transparency Doesn't Work

Jan 24, 2011

I have a form, which has the background color set to the transparency key color. On the form there is a picturebox with transparent backcolor and a picture that is semi transparent.Unfortunately the transparency doesn�t work. The form shows with a background, but not the background color I chose, but the gray control color. Nothing is transparent.The EXACT same thing works with another form.

View 4 Replies

VS 2010 - AeroGlass From Windows API Pack - Transparency Key

Nov 29, 2010

I decided to have a play around with the Windows API Code Pack and so far it has had some very interesting things. Something which I like in particular is AeroGlass. I have created a project to mess around with it to see how it works etc. and I am having some difficulties with the tranparency. If I put a textbox on the form for example, it displays fine. The text however is barely readable unless the form is over a dark background. The solution seemed obvious. Change the transparency key. However, there wasn't one set. Adding one stops the glass effect from working.

View 2 Replies

VS 2010 - The Transparency Is Not Preserved And It Is Converted To BLACK?

Apr 27, 2012

My application allows users to specify a logo. When they choose the logo I need to scale the image to accommodate my application's use. Everything works great except for transparent GIFs, the transparency is not preserved and it is converted to BLACK. Here is my

[code]...

How can a preserve an image's transparency if applicable?

View 1 Replies

VS 2010 Transparency Just Background As Win7 Does While Running Under Win7 Plataform

Jun 6, 2011

I know the propertys transparency key and opacity. It isnt what I am looking for. I need to have my form to have the same Glass Effect the as win7 does while runing under win7 plataform. Like, if i have glass effect in the top I should have it in the background.

View 14 Replies

VS 2010 Associate A Listview Control With An Imageview Control To Display Images?

Feb 15, 2010

I have been able to associate a listview control with an imageview control to display images. There are a couple of things, I would like to do.

1> How do I display the image in the second column? 2> How do I increase the size of the image getting displayed? My images are all 48 x 48 (pixels), but they keep shrinking.

VB.NET
Option Explicit On
Imports System.IO

[code].....

View 4 Replies

VS 2010 Changing Control Parent Property Changes Control Location Position?

Feb 16, 2011

I'm trying to make a program with transparent labels over pictureboxes and when I set the label Parent to the PictureBox the position of the label changes.

View 2 Replies

VS 2010 Setting Control Events To A Control That Doesn't Exist Yet

Jul 23, 2011

I am looking how to set events to a webrowser which is being created by the following:

[Code]...

View 1 Replies

.net - Picture Box Transparency In Vb?

Feb 18, 2012

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 Replies

Flash - Transparency In Swf In .net?

Mar 9, 2010

how 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 Replies

Get Image Transparency To Come Through In VB?

Jul 20, 2009

how 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.

View 6 Replies

Have Transparency On A Form?

Feb 7, 2009

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 Replies

Picturebox PNG Transparency?

Jun 29, 2010

Right 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 Replies

Set The Transparency Key To A Color?

Oct 1, 2010

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.

View 10 Replies

Transparency In MDI Forms

Feb 7, 2010

Ive 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]...

View 3 Replies

Transparency Of PNG That Are In A DLL, Is Not Working

Jul 20, 2009

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 Replies

8 Bit GIF - Transparency / Forms And Controls

Apr 3, 2012

I 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 Replies

Create Transparency In A Sprite?

Jun 29, 2011

I'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 Replies

How To Get Transparency Working In Labels

Jan 6, 2009

I 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 Replies

IDE :: Aero Text Transparency?

Jun 16, 2010

My 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 Replies

Per-Pixel Alpha Transparency?

Nov 17, 2011

I'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"

View 1 Replies

Picture Box Transparency Layers?

Aug 15, 2011

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!

View 2 Replies

Picturebox Not Honoring Transparency

May 9, 2011

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.

View 1 Replies

RGB, Transparency And Locate Pixel

Jul 20, 2011

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 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved