473,387 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Text Opacity

5
I am new to Visual Basic 2008 so this may be a simple one...

I am attempting to write opaque text over an Image (Picture Box) however when I set the background colour of a label to transparent this makes the background colour of the label the same as the form and not transparant to the picture box which is what I need. Does anyone know how this is done please?
Dec 10 '07 #1
7 1415
epots9
1,351 Expert 1GB
does it is look like that when you run the app?
Dec 10 '07 #2
Sol
5
Yes. The idea is a simulation of a GUI where softkey options are displayed on screen
Dec 10 '07 #3
epots9
1,351 Expert 1GB
until i install the demo version i won't be much help, but i'll get one of the .NET Pros help you out.
Dec 10 '07 #4
Sol
5
Thank you.... A little more information.. I am developing an application which incorporates a web-cam. The webcam outputs to a picturebox as a bitmap image. I need to add text over the picturebox without having the opaque textblock backcolour. I have tryed setting the transparantcy key to the same as the label back colour however the the label becomes transparant and shows whats behind the form and not transparant to the picture box. I have seen examples of alpha blending however my programming skills prevent me from exploiting this method against a 25-frame per second webcam picture. There must be a simple way to do this as with the form opacity?
Dec 11 '07 #5
kenobewan
4,871 Expert 4TB
Have you tried using a textbox instead of a label? Another option in asp.net would be to use DrawString statements. HTH.
Dec 11 '07 #6
Sol
5
I have tried both of these. The Drawstring draws the text string behind the picturebox (and all controls) and the textbox behaves in the same way as the label. Is it possible to programmably z-order the drawstring output in front of the picturebox?
Dec 11 '07 #7
Sol
5
I have done a little test with the Drawstring Function when loading and clearing a picture every second in a picture box... The Text remains as I need it do.

The problem appears to be involved in the webcam and the way in which the frames are cleared and loaded onto the picturebox. (I am using the AVICAP.32 method with CapCreateCamWindow) I believe that there may be a deeply embedded member of a called class that affects the image in a way that clears not just teh image, but the text as well.... Any Ideas?
Dec 12 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mickey | last post by:
Hi, I have a script which works in both IE but is sluggish in Firefox. The script is a simple text scroller. It works perfectly in IE however in Firefox, the text scroll slower and eventually...
1
by: mhoeneveld | last post by:
I am writing a small script to fade the opacity of an image/object. The script itself works fine only I do have some unwanted behaviour. I do use a tablecell object and the mouseover/mouseout to...
1
by: Greg | last post by:
This renders in Firefox perfectly well but the text in the red box remains invisible. The program is a subset of a larger and doesn't do much. but even after cutting out all the unneccessary stuf,...
2
by: reidarT | last post by:
I want a windows form to act like the one in Outlook when you get a new message and it is visible for about a couple of seconds and then the opacity decreases and the form dissapears in the end I...
4
by: JJ | last post by:
I want to display an image with some text overlay Both the image and text will be retrieved from a database, so I have to combine them at run-time. Is there a way to do this? TIA JJ
3
by: pld888 | last post by:
https://turbotaxweb.turbotaxonline.intuit.com/open/registration/SignIn.htm anyone know which 3rd party textbox this is???
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
3
by: Sin Jeong-hun | last post by:
As far as I know if I change the form's opacity, every control on the form also inherits that opacity. But in many real applications (not application programs), we see opaque text (100% opacity) on...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.