Programmatically Determine Background Of Image (logos, Etc) And Make Transparent?

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


ADVERTISEMENT

VB Image - Transparent Parts Dont See Form As Background But Marioland As Background?

Feb 18, 2011

Background of form: black

background of char, bombs and shrooms: transparent

picbox behind char, bombs and shrooms is regular (marioland)

How can i fix it so the transparent parts dont see form as background but marioland as background?

View 12 Replies

Transparent Controls Over Form With Background Image Shows Backcolor Not Image?

Sep 18, 2009

I can't remember exactly if this is possible or not but what I am attempting I would think should theoretically be possible. I know it is possible in WPF but the company I am working for doesn't want to make the transition just yet. Basically what I want is to use a background image on a form for the background and I have a docked control on the right and left. I have set the background on both of these docked controls to transparent however it is showing the back color rather than the background image. I tried, rather than setting the background image property, to override the onpaintbackground and onpaint events and use e.graphics.draw(picture, me.clientrectangle) but it still seems to just pick up the backcolor as the true transparent background so I'm wondering if it's possible to get it to show the background image through the control rather than the backcolor of the form?

View 3 Replies

Transparent Background PNG Image In .NET?

Feb 16, 2009

I have inserted PNG image (transparent background) but it can't go to transparent. I want it to be front of other label but it's gray background hide the text what i have to do with this?

View 7 Replies

Png Image Transparent With Video In Background?

Mar 26, 2011

Me again. I also have a png image and a web cam video in my form. I have transparent parts on the png image that show through to the form background colour.

How do I set it so it shows the video in the background, when I put the png image over the top of the video?

At the moment its still shows straight through to the back of the form?

View 2 Replies

Set The Tbox Image Background To Transparent?

Mar 17, 2009

Hiwould like to set the tbox image background to transparent>

[Code]......

View 2 Replies

VS 2005 Image With Transparent Background?

Dec 22, 2009

with a triangle formed object and the rest of the image(background) are transparent... how do i make the transparent area not click able?my code how it is now>

Private Sub PictureBox2_MouseDown1(ByVal sender As Object, ByVal e As MouseEventArgs) Handles PictureBox2.MouseDown
'code for picturebox not start an click event. only if the image will be clicked>>

[code]....

View 4 Replies

Give An Image Inside Of A Picture Box A Transparent Background?

Apr 7, 2008

Is it possible to give an image inside of a picture box a transparent background? Like, for example say i have a red circle on a white background, is it possible to make the white transparent?

View 6 Replies

Transparent Listveiw Or Stretch Listview Background Image?

Apr 15, 2010

I am making an operating system based game in visual basic. The real problem is that the game runs full screen and when it comes to desktop backgrounds I am having heaps of problems.First I had the desktop as just the forms background image but I needed to add icons to the desktop so I anchered a listveiw onto the background and the problem is that the listview is not transparent and you can't see the desktop background.

I thought that I could fix that problem by setting the background image on the listveiw as the background image but the problem is when i set a background image on the listveiw there is no option to stetch the image. The only option is to tile the background image.

How can I get the listveiw either transparent or set it a stretched background. ( the user gets to choose a desktop background so they all need to be able to stretch to the full desktop of the user's screen resolution.)

View 10 Replies

VS 2008 - Picturebox - Remove The Image And Have A Transparent Background

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

Make GIF Background Transparent?

Feb 18, 2011

I have hundreds of .gif images with white backgrounds that I would like to make transparent using a vb.net procedure.

View 1 Replies

Can't Make A Transparent-background-trackbar

Feb 6, 2009

This is the Trackbar in MS Office Picture Manager, I can't make a transparent-background-trackbar like it, when I tried to make the background transparent, it say that "this control doesn't support transparent color", the trackbar also always behind the toolstrip (I chose "Bring to front" from context menu).

View 3 Replies

Forms - Background Image Transparent Painted With Custom Linear Gradient

Jun 1, 2012

I try to achieve to paint a form with a gradient backcolor and overlap an image with transparency. This is possible? I want using a tile background image with transparent background and paint the background with a custom linear gradient.

View 2 Replies

Make Background Of Window Transparent & Docking?

May 3, 2011

I am making a useful sticky program, i know Windows 7 has a similar one built in but it doesn't function the way i want. Here is an image: As you can see, i am having problems removing the coloration of the background application window. How can i make that transparent without affecting the image? My second question is, how can i dock my application window to the right hand side of the screen?

View 5 Replies

Make Colored Background On BMP Images Transparent?

Jun 28, 2011

I do have the User Control from a previous Visual Basic 6.0 project that allows certain colors to become transparent. But what I'd like to find out is, how can I make a certain color combination transparent using a User Control in Visual Basic 2008 Express?

View 2 Replies

Make The Background Color Fade To Transparent?

Feb 6, 2010

I have tried this:

For i = 255 To 1 Step -1
MyPanel.BackColor = Color.FromArgb(i,Color.Red)
Next

This will make the background color fade to transparent.The problem is, I don't want only the background color to change.I want to change the visibility / opacity of all the controls inside that panel too..

View 21 Replies

Make Transparent Background On Splash Screen?

Nov 6, 2009

I need to know how too make the background color on my splash screen because i need it round or fading out into whats on the persons screen.

View 4 Replies

Make A RichTextBox Transparent In Order To Display A Background For It?

May 16, 2010

I need to make a RichTextBox transparent in order to display a background for it.
So far I've managed to find a custom control for it, but when I scroll the text gets all messed up (the scrollbars are bugged too). how to fix this or how to make a standard RichTextBox transparent?

View 7 Replies

Code To Make A Image Transparent?

Apr 7, 2009

I wish to make a bitmap image (.bmp) transparent using VB.NET code.

View 3 Replies

Make An Image In A Picturebox Transparent

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

Make Transparent All Pixels In One Image?

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

Make Image In Imagebox Semi-transparent?

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

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

How To Make Shadow Effects For Image With Transparent Back

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

[2008] Make A Picture Box With An Image In Semi Transparent?

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

Make Part That Drops Down Semi-transparent Or Completely Transparent Resembling Floating Text?

Oct 27, 2010

[code] how to make the part that drops down semi-transparent or completely transparent resembling floating text. So that I can see the form underneath.

View 1 Replies

Make Userform Transparent But Have Non-transparent Controls?

Mar 7, 2008

Question:Is it possible to make a userform transparent but have non-transparent controls?I notice changing the opacity of the userform will change the opacity of controls embedded on it.

View 9 Replies

.net - Creating Transparent Background In WPF?

Apr 1, 2010

I have a button with a backgroun image of color white. My button is sitting on the toolbar which has a bacground color of Blue. When the button is sitting on the toolbar, the button looks white, however I want it to look like blue as the the background color of toolbar is Blue.

How should I achieve this in WPF..

View 3 Replies

Background Transparent Label?

Apr 7, 2012

I have a problem with 2 label, the background is not transparent, I set both BackColor = transparent, but nothing, they don't work. Both Label are located inside a panel, here is the picture so you can better understand:How can I do?

View 1 Replies

Draw A Transparent Background?

Feb 7, 2010

Is there a way to draw an ellipse with a transparent background and be able to control it's

opaqueness? I can create a brush with a color.Transparent but now how do I control the opacity of this color?[code]...

View 2 Replies







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