Labels Graphic Picture Transparent Image
Hi, I hope someone can help me here, and I have explain myself clearly.
The project I'm build is Label stickers, what the software does is allow user to print labels stickers with selected text, and pictures. Selecting background color of the labels and color for the text. The picture color background will be the same as the backgournd label color, and the picture color will be the same as the text. Thus having the software print out the labels with the text and picture with selected colors.
I have tried using .GIF transparent to print the labels, on the screen it displays the corrrect color, but when printing, you will notice the difference between the label background color and the picture color background (the picture BG is alot lighter than the Label BG).
Is there any way or any dll or ocx library that allows me to change the picture color and picture background. example picture
Any suggestion would be great.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Image/Picture Transparent
Anyone know how to make a picture Transparent in X%, im planning to use it in bitblt. Offcourse looking for fast funktions
Transparent Picture Or Image Box?
is there any way that i can make picture boxes or image boxes overlap and still be able to see the picture in the backround? ... is there a component or something i can add to acheive my task...?
please help...thanx
Transparent Image Or Picture
Hi everyone,
I am dragging the image control in visual basic 6 and put it in the form and tried to set it to transparent but I coud not find the right property to do this. Also I tried it with the picture control and could not. Can someone help or give a hint in how to make the image or picture control transparent (I mean you can see other buttons or texts through the image but can not click on the buttons and textboxes). Thanks for any hint or help.
Picture Box Help (Overlaying A Transparent Image)
I'm sure this has been answered a gazillion times, but I could not find the precise thread that answers this. I have a picture box that contains a background image. I want to overlay a .jpg image on top of this; the .jpg image is a company logo that should be displayed with a transparent background, so that the background image shows through the lettering.
Flipping A Picture (GIF) With Transparent Pixels In Image Control
Hello!
Before I say that it's impossible to do, I wanted to be sure.
I will closely describe my goal, first:
loading an Image control with a GIF file with transparency results in an object that is transparent in some areas, though it still responds to mouse clicks on these areas. A picturebox, however, does not allow this feature.
I want to have an image with its own picture flipped, without losing the transparency features. Is it possible?
(Please only let me know if it is impossible, I am not interested in doing a workaround at this time.)
I already tested BitBlt. It loses the transparency information.
Transparent Forms + Transparent Labels?
I got my form to be transparent with:
VB Code:
Public Sub MakeTransparent(TransForm As Form)Dim ErrorTest As Double On Error Resume Next Dim Regn As Long Dim TmpRegn As Long Dim TmpControl As Control Dim LinePoints(4) As POINTAPI 'Since the apis work with pixels, change the scalemode 'To pixels TransForm.ScaleMode = 3 If TransForm.BorderStyle <> 0 Then MsgBox "Change the borderstyle to 0!", vbCritical, "ACK!": End 'makes everything invisible Regn = CreateRectRgn(0, 0, 0, 0) 'A loop to check every control in the form For Each TmpControl In TransForm If TypeOf TmpControl Is Line Then If Abs((TmpControl.Y1 - TmpControl.Y2) / (TmpControl.X1 - TmpControl.X2)) > 1 Then 'If it's more verticle than horizontal then 'Set the points LinePoints(0).X = TmpControl.X1 - 1 LinePoints(0).Y = TmpControl.Y1 LinePoints(1).X = TmpControl.X2 - 1 LinePoints(1).Y = TmpControl.Y2 LinePoints(2).X = TmpControl.X2 + 1 LinePoints(2).Y = TmpControl.Y2 LinePoints(3).X = TmpControl.X1 + 1 LinePoints(3).Y = TmpControl.Y1 Else 'If it's more horizontal than verticle then 'Set the points LinePoints(0).X = TmpControl.X1 LinePoints(0).Y = TmpControl.Y1 - 1 LinePoints(1).X = TmpControl.X2 LinePoints(1).Y = TmpControl.Y2 - 1 LinePoints(2).X = TmpControl.X2 LinePoints(2).Y = TmpControl.Y2 + 1 LinePoints(3).X = TmpControl.X1 LinePoints(3).Y = TmpControl.Y1 + 1 End If 'Creates the new polygon with the points TmpRegn = CreatePolygonRgn(LinePoints(0), 4, 1) 'If the control is a shape... ElseIf TypeOf TmpControl Is Shape Then If TmpControl.Shape = 0 Then 'It's a rectangle TmpRegn = CreateRectRgn(TmpControl.left, TmpControl.top, TmpControl.left + TmpControl.Width, TmpControl.top + TmpControl.Height) ElseIf TmpControl.Shape = 1 Then 'It's a square If TmpControl.Width < TmpControl.Height Then TmpRegn = CreateRectRgn(TmpControl.left, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2, TmpControl.left + TmpControl.Width, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2 + TmpControl.Width) Else TmpRegn = CreateRectRgn(TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2, TmpControl.top, TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2 + TmpControl.Height, TmpControl.top + TmpControl.Height) End If ElseIf TmpControl.Shape = 2 Then 'It's an oval TmpRegn = CreateEllipticRgn(TmpControl.left, TmpControl.top, TmpControl.left + TmpControl.Width + 0.5, TmpControl.top + TmpControl.Height + 0.5) ElseIf TmpControl.Shape = 3 Then 'It's a circle If TmpControl.Width < TmpControl.Height Then TmpRegn = CreateEllipticRgn(TmpControl.left, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2, TmpControl.left + TmpControl.Width + 0.5, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2 + TmpControl.Width + 0.5) Else TmpRegn = CreateEllipticRgn(TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2, TmpControl.top, TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2 + TmpControl.Height + 0.5, TmpControl.top + TmpControl.Height + 0.5) End If ElseIf TmpControl.Shape = 4 Then 'It's a rounded rectangle If TmpControl.Width > TmpControl.Height Then TmpRegn = CreateRoundRectRgn(TmpControl.left, TmpControl.top, TmpControl.left + TmpControl.Width + 1, TmpControl.top + TmpControl.Height + 1, TmpControl.Height / 4, TmpControl.Height / 4) Else TmpRegn = CreateRoundRectRgn(TmpControl.left, TmpControl.top, TmpControl.left + TmpControl.Width + 1, TmpControl.top + TmpControl.Height + 1, TmpControl.Width / 4, TmpControl.Width / 4) End If ElseIf TmpControl.Shape = 5 Then 'It's a rounded square If TmpControl.Width > TmpControl.Height Then TmpRegn = CreateRoundRectRgn(TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2, TmpControl.top, TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2 + TmpControl.Height + 1, TmpControl.top + TmpControl.Height + 1, TmpControl.Height / 4, TmpControl.Height / 4) Else TmpRegn = CreateRoundRectRgn(TmpControl.left, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2, TmpControl.left + TmpControl.Width + 1, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2 + TmpControl.Width + 1, TmpControl.Width / 4, TmpControl.Width / 4) End If End If 'If the control is a shape with a transparent background If TmpControl.BackStyle = 0 Then 'Combines the regions in memory and makes a new one CombineRgn Regn, Regn, TmpRegn, RGN_XOR If TmpControl.Shape = 0 Then 'Rectangle TmpRegn = CreateRectRgn(TmpControl.left + 1, TmpControl.top + 1, TmpControl.left + TmpControl.Width - 1, TmpControl.top + TmpControl.Height - 1) ElseIf TmpControl.Shape = 1 Then 'Square If TmpControl.Width < TmpControl.Height Then TmpRegn = CreateRectRgn(TmpControl.left + 1, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2 + 1, TmpControl.left + TmpControl.Width - 1, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2 + TmpControl.Width - 1) Else TmpRegn = CreateRectRgn(TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2 + 1, TmpControl.top + 1, TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2 + TmpControl.Height - 1, TmpControl.top + TmpControl.Height - 1) End If ElseIf TmpControl.Shape = 2 Then 'Oval TmpRegn = CreateEllipticRgn(TmpControl.left + 1, TmpControl.top + 1, TmpControl.left + TmpControl.Width - 0.5, TmpControl.top + TmpControl.Height - 0.5) ElseIf TmpControl.Shape = 3 Then 'Circle If TmpControl.Width < TmpControl.Height Then TmpRegn = CreateEllipticRgn(TmpControl.left + 1, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2 + 1, TmpControl.left + TmpControl.Width - 0.5, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2 + TmpControl.Width - 0.5) Else TmpRegn = CreateEllipticRgn(TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2 + 1, TmpControl.top + 1, TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2 + TmpControl.Height - 0.5, TmpControl.top + TmpControl.Height - 0.5) End If ElseIf TmpControl.Shape = 4 Then 'Rounded rectangle If TmpControl.Width > TmpControl.Height Then TmpRegn = CreateRoundRectRgn(TmpControl.left + 1, TmpControl.top + 1, TmpControl.left + TmpControl.Width, TmpControl.top + TmpControl.Height, TmpControl.Height / 4, TmpControl.Height / 4) Else TmpRegn = CreateRoundRectRgn(TmpControl.left + 1, TmpControl.top + 1, TmpControl.left + TmpControl.Width, TmpControl.top + TmpControl.Height, TmpControl.Width / 4, TmpControl.Width / 4) End If ElseIf TmpControl.Shape = 5 Then 'Rounded square If TmpControl.Width > TmpControl.Height Then TmpRegn = CreateRoundRectRgn(TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2 + 1, TmpControl.top + 1, TmpControl.left + (TmpControl.Width - TmpControl.Height) / 2 + TmpControl.Height, TmpControl.top + TmpControl.Height, TmpControl.Height / 4, TmpControl.Height / 4) Else TmpRegn = CreateRoundRectRgn(TmpControl.left + 1, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2 + 1, TmpControl.left + TmpControl.Width, TmpControl.top + (TmpControl.Height - TmpControl.Width) / 2 + TmpControl.Width, TmpControl.Width / 4, TmpControl.Width / 4) End If End If End If Else TmpRegn = CreateRectRgn(TmpControl.left, TmpControl.top, TmpControl.left + TmpControl.Width, TmpControl.top + TmpControl.Height) End If 'Checks to make sure that the control has a width 'or else you'll get some weird results ErrorTest = 0 ErrorTest = TmpControl.Width If ErrorTest <> 0 Or TypeOf TmpControl Is Line Then CombineRgn Regn, Regn, TmpRegn, RGN_XOR End If Next TmpControl SetWindowRgn TransForm.hwnd, Regn, True End Sub
I tried to get my labels to be completely transparent as well by setting the backstyle=0. They take the color of the form.
So if I set my form BGcolor to red, the form will be transparent and the labels bgcolor will be red, even though the backstyle = 0 (transparent). What a shame. Anything wrong w/ my sub?
VB.NET - Transparent Labels?
Hey all,
I've been using VB.NET for about a week now, have a couple books (both by Que), and most points on the conversion are going ok.
The one major problem is the conversion of a program that has an image control behind labels. In VB6, the BackStyle was set to Transparent to allow for the image to come through. Some of the labels were also changed to Opaque at some times and given a certain BackColor, which can be done in .NET with no problem.
The problem, that even the help files mention, is the background when set to transparent will just take the form's background color and set the backcolor of the label to the same color, even with any controls underneath it. I still cannot find a solution to set labels to be transparent and let controls show through at design time. There must be a way to solve this easily... labels are the most used controls and need this kind of flexibility.
Hopefully this is an easy question for someone out there.
Thanks,
Brian
Transparent Rotated Labels?
I need some type of label control that can rotate 90 degrees, but also can have a transparent background.
Why?
I want to make a rotated list of items that can be scrolled via the up-down keys, so the labels need to be able to be changed on-the-fly. Sounds silly, right? Well, I need it, so any help is good help.
Right now, I'm using this control: http://www.mvps.org/access/modules/mdl0048.htm (its for VBA, but works fine in VB). The only problem is it doesn't have a transparent background, which is its major downfall.
Any help?
DropShadow On Transparent Labels
Good day,
I was wondering if it was possible, with an API, to create a black shadow (similar to dropshadow in Photoshop) on white forecolor, transparent labels ?
Many thanks
Head's Up - Transparent Labels In .Net
For those of you VB6'ers who may be interested. I have found a way to efficiently (i.e. no overhead to speak of) produce transparent labels under the .net framework.
I know this has been a major bone of contention lately, so I thought I'd better let you guys in on it.
Its a bit of a mess but the code is yours to play with as you wish.
http://www.vbforums.com/showthread.p...23#post1956523
Transparent (no Don't Runaway LoL) Labels
I've searched for this and I couldn't find it in this forum or on the site.. but I need to know HOW TO make the Label Transparent, No don't tell me to change the color to this and that and make it look like it's transparent but it's not.. cause say if i have a form where I have the background set as a gradient type or simpler yet, have a custom image in the background.. and I want to put Text on the form.. and I want it to be transparent rather then the same dull color... Transparent so you don't see the background color, just the foreground (text) color... Please help.. thanks...
Transparent Form Background W/Labels
I'm using the following code to make my form background transparent.
The form goes transparent, but I can't get the label's background to be transparent. They always take the color of the form, which is grey. I've tried setting the label's backstyle to "0 - Transparent"
Code:
Option Explicit
Private Declare Function CreateRectRgn Lib _
"gdi32" (ByVal X1 As Long, ByVal Y1 As Long, _
ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function CombineRgn Lib _
"gdi32" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, _
ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Private Declare Function SetWindowRgn Lib _
"user32" (ByVal hWnd As Long, ByVal hRgn As Long, _
ByVal bRedraw As Boolean) As Long
Private Declare Function DeleteObject Lib _
"gdi32" (ByVal hObject As Long) As Long
' Constants used by the CombineRgn function
Private Const RGN_AND = 1
Private Const RGN_OR = 2
Private Const RGN_XOR = 3
Private Const RGN_DIFF = 4
Private Const RGN_COPY = 5
Private Sub Form_Activate()
Dim rgnForm As Long, rgnCombined As Long
Dim rgnControl As Long, x As Long
Dim formWidth As Single, formHeight As Single
Dim borderWidth As Single, titleHeight As Single
Dim ctlLeft As Single, ctlTop As Single
Dim ctlWidth As Single, ctlHeight As Single
Dim ctl As Control
' Calculate the form area
borderWidth = (Me.Width - Me.ScaleWidth) / 2
titleHeight = Me.Height - Me.ScaleHeight - borderWidth
' Convert to Pixels
borderWidth = ScaleX(borderWidth, vbTwips, vbPixels)
titleHeight = ScaleY(titleHeight, vbTwips, vbPixels)
formWidth = ScaleX(Me.Width, vbTwips, vbPixels)
formHeight = ScaleY(Me.Height, vbTwips, vbPixels)
' Create a region for the whole form
rgnForm = CreateRectRgn(0, 0, formWidth, formHeight)
rgnCombined = CreateRectRgn(0, 0, 0, 0)
' Make the graphical area transparent by combining the two regions
x = CombineRgn(rgnCombined, rgnForm, rgnForm, RGN_DIFF)
' Make the controls visible
For Each ctl In Controls
' Make the regions of controls whose container is the form visible
If TypeOf ctl.Container Is Form Then
ctlLeft = ScaleX(ctl.Left, vbTwips, vbPixels) + borderWidth
ctlTop = ScaleX(ctl.Top, vbTwips, vbPixels) + titleHeight
ctlWidth = ScaleX(ctl.Width, vbTwips, vbPixels) + ctlLeft
ctlHeight = ScaleX(ctl.Height, vbTwips, vbPixels) + ctlTop
rgnControl = CreateRectRgn(ctlLeft, ctlTop, ctlWidth, ctlHeight)
x = CombineRgn(rgnCombined, rgnCombined, rgnControl, RGN_OR)
End If
Next ctl
' Set the clipping area of the window using the resulting region
SetWindowRgn hWnd, rgnCombined, True
' Tidy up
x = DeleteObject(rgnCombined)
x = DeleteObject(rgnControl)
x = DeleteObject(rgnForm)
End Sub
How To Make Labels Real Transparent?
Continuing with the story of my label in a picturebox, now I see that when the label is placed over some plotted area on the picturebox, this area is hidden despite the label's backstyle property having been set to transparent. What's going on?
Transparent Form + Transparent Image
I made my form transparent, however I have a .gif file that I want to be transparent, but when I add it to my transparent form, it shows the back of the form where the transparent image should be showing. How can I prevent this?
Thanks in advance.
Transparent Form And Transparent Image
I'm a little stuck in this problem:
I need a form to have a form shaped like a circle...
...there is no problem in making the form transparent,
but I need a picture (a ball, could be .gif or .png) to be
on that form without having the background of the .gif.
The .gif has already a transparent part, but
there is still the background of that picture box.
Has anyone an idea?
Thanx
[ http://www.caist.com - the bright site of life ]
Graphic Image Save
Hi,
I have a problem with coding up a program like this. I'd like to open a bitmap image (.bmp) and put it in a format like this: All the pixels of the picture are one of the 16 QB colors so 2 pixel color information fit into 1 byte. I want to just write the image in that way to a file. No headers, no compression, no nothing, just plain pixel and color infos.
thx for any help
Graphic Help: Placing Font On Picture
Okay.. I've drew a line on form with this code:
VB Code:
me.Line (150, 200)-Step(ex, ey), vbWhite
Its all good, I have No problem. But I also wanted to print front on form too, and place it anywhere as I wish following x and y coordinate. just like one in picture;
My first thought of this method is doing this:
VB Code:
Me.Line (95, 95)-Step(12, 7), vbWhite Print "testing"
It worked, but I still need some opinion because I am sure there is another way around instead of using line strings code?
If in case, that's the only method to do that, can anyone tell me how do I write code to change fonts and the color of this string?
(MFC)How To Display A Graphic Image In A Dialog Box?
Hi..
I have did some simple graphic about texture mapping on a sphere in the CView (using MFC). Now I want to show it in a rectangle frame in a dialog box. I dont want the code anymore in CView but only as a preview in a dialog box. Is there any way to do this? Is there any website I can refer to?
Image Control Graphic Equalizer/visualizer
This has probably been answer before but i cant find it so. Im trying to make a graphic visualization for an mp3 player. I have made an image and used the image control to display it. I then use the height property to change the height of the image in time to the music like a graphic equalizer/visualizer this works but not quite as expected. The bottom of the image moves up and down instead of the top which is what i want. Does anybody know how to change the hight from the top down rather than the bottom up.
Put The Image Transparent(not The Backcolor, But The Entire Image)
i'm using visual basic 6, in usercontrol section...
i have the timer that can alphablend the image, with alphablend() api function... but something isn't right, i can't see the image transparent...
heres the code:
Code:
Private Sub tmrAnimation_Timer()
If blnDestroyed = True Then
tmrAnimation.Enabled = False
Exit Sub
End If
On Error GoTo erro
Const Transparency = (50 * 255) / 100 * &H10000 'these constant is for give me the value of 50% of transparency
If lngActualSubImage < PicAnimation.Count - 1 Then
lngActualSubImage = lngActualSubImage + 1
Else
If Strip.Activate = True Then
lngActualSubImage = 1
Else
lngActualSubImage = 0
End If
End If
Set UserControl.Picture = Nothing
UserControl.Cls
If blnStretch = True Then
StretchBlt UserControl.hdc, 0, 0, UserControl.ScaleWidth, UserControl.ScaleHeight, PicAnimation(lngActualSubImage).hdc, 0, 0, PicAnimation(lngActualSubImage).Width, PicAnimation(lngActualSubImage).Height, vbSrcCopy
ElseIf blnAlphaBlend = True Then
AlphaBlend UserControl.hdc, 0, 0, UserControl.ScaleWidth, UserControl.ScaleHeight, PicAnimation(lngActualSubImage).hdc, 0, 0, _
PicAnimation(lngActualSubImage).ScaleWidth, PicAnimation(lngActualSubImage).ScaleHeight, Transparency
Else
UserControl.Picture = PicAnimation(lngActualSubImage).Image
End If
UserControl.Refresh
If blnTransparent = True Then Call SubTransparent
tmrAnimation.Enabled = False
RaiseEvent ChangeImage(lngActualSubImage)
tmrAnimation.Enabled = True
Exit Sub
erro:
tmrAnimation.Enabled = False
MsgBox Err.Description
End Sub
and heres the image for you see the problem....
you can see the problem in Other normal images section...
my objective is put the image transparent(for see other throw the image), but must be see it transparent in usercontrol... but i don't know where is the problem...
can anyone explain to me?
thanks
Text Labels On Picture
I use the 'picture.Pset (x,y)' command to put dots various places on a picture. Now I need a command to put text labels next to the dots. How do I do that?
How Do I Print A Picture With Labels On Top Of It???
Hey all,
I've managed to get VB to print my picture however at runtime this picture also has various labels on top of it. (the picture is a blank 'flight pass' and the various labels grab info from other forms to complete the flight pass)
however when i print using:
Code:
printer1.paintpicture image1.picture, x, y
printer.enddoc
the printer does not print the captions ontop of the pic. how do i add them into the code so they will also print (in their current positions on the form) ????
Saving Image With Labels
I have an image with several labels on top. I want to save the image with the text that's in the labels but want them over the image exactly as they are in the form... does anyone know what I can do?
Silver
Adding Labels To A Pie Chart In A Picture Box, How?
I found this code at http://selfonline-education.tripod.c...r/vbasic18.htm and is exactly what I was looking for:
VB Code:
Private Sub Command1_Click() Dim pieData(10) As IntegerPicture1.Cls For i = 0 To 9 pieData(i) = 20 + Rnd() * 100 Total = Total + pieData(i) Next Picture1.DrawWidth = 3 For i = 0 To 9 arc1 = arc2 arc2 = arc1 + 6.28 * pieData(i) / Total If Check1.Value Then Picture1.FillStyle = 2 + (i Mod 5) Else Picture1.FillStyle = 0 End If If Check2.Value Then Picture1.FillColor = QBColor(8 + (i Mod 6)) Else Picture1.FillColor = QBColor(9) End If Picture1.Circle (Picture1.ScaleWidth / 2, Picture1.ScaleHeight / 2), Picture1.ScaleHeight / 2.5, , -arc1, -arc2 Next i End Sub Private Sub Command2_Click() EndEnd Sub Private Sub Command3_Click() Picture1.ClsEnd Sub
My question is how can I add labels next to each slice and a legend next to the pie chart?
Thanks!
Printing (Painting) A Picture Box W/ Labels
Ok all you VB pros... a success story for this one isn't in the forums and I could really use and would really appreciate your input on my prob...
I have a picturebox with some labels and another picturebox inside of it. I need to be able to print that picturebox and have it show the labels and picturebox that are inside of the main one.
thanx for the help,
squirrelly1
Picture Boxes, Labels, And Transparency
Ok, I'll explain the whole problem because there may be several ways to
solve this and hopefully someone knows one. What I'm doing is creating
a specialty template editor, similar to say a corel draw (but for
specific uses). What I need to be able to do is import graphics and
text and then move them around the background until they are where I
want them and then export it out as an image file.
The problem is that I need to be able to move text over an image and
vice versa. Labels always go behind a picture box when you move them
regardless of Zorder so I tried putting each label in its own equally
sized picture box. That solve that problem, now the text can go over
the other images where necessary. But this causes a new problem.
Picture boxes don't have transparent backgrounds so if I move text over
an image, you can't see behind the text to the image, you see a big
white (or whatever background color is) block. I tried putting an all
transparent gif in the picture box then putting the label over top that
but it didn't seem to work.
I've seen these issues in the newsgroups before but none of the answers
really matched what i'm trying to do.
Thanks in advance!
Chris
Printing ImgImage.Picture With Labels
I have a program that displays a health inspection certificate in an image control. Two labels (lblLabel.BackStyle = transparent) display on top of the picture, and are used for the "fill-in" parts of the certificate (i.e. "This restaurant, 'McDonald's', passes all health codes", with 'McDonald's' appearing in one of the labels).
The point of all of this is to be able to print a certificate with the individual client's information on it. So far, my code will only print the image (the drawing of the certificate), and won't include the text in the labels on the printed document. Do the labels have to be "grouped" to the image control? Should I use a PictureBox instead?
I've zipped some basic code, with the labels set to permanent values (typically the labels are either populated by entering new data or opening a database, but this is just to keep it straightforward). Save the included crappy drawing of a certificate to your C: drive. Thanks.
Save Image And Labels Into ONE File
Hi all,
Here is my problem,
I've got a picturebox with several (the user can add as many as he/she wan't)labels in it, the labels a have different properties ( font, top, left ect.)
Is there a way how I can save
- the properties of the labels
- the picture that is in the picturebox
- and som other data
into ONE file.
( and load it later on)
I cant seem te find a way to do it.
tnx for your time!
Transparent Picture Box
is it posible to have a transparent picture box that will show a frame behind it.
Thanks
David.
Transparent Picture
I´m making a program to design cards and I need to add some symbols (they are in bmps) on the main picture, but the symbols are triangle shaped so ther is a region that should be transparent, but I can´t manage to do that, i tried overlay with Imagelists but doen´t let me specify coords. What can I do?
Transparent Picture Box
How can I make a transparent picture box that "floats" over an existing one? I need it as a container for a lat/long grid system which the user can then toggle as visible or not.
One solution I found on the net was:
Private Sub Form_Activate()
MousePointer = 11
Picture2.PaintPicture Form1.Picture, 0, 0
Picture1.PaintPicture Picture2.Image, 0, 0, Picture1.Width, Picture1.Height, Picture1.Left, Picture1.Top, Picture1.Width, Picture1.Height
Picture1.Line (1, 1)-(Picture1.Width - 1, Picture1.Height - 1), , B
MousePointer = 0
End Sub
(obviously I have used my own names for the pictures etc., and the above code is attached to a command button rather than 'form activate'.
Using the form supplied with the code does indeed produce a transparent picture box (it's surrounded by a white box so you can see it) but when I plug the same procedure into my program I get an 'Invalid Picture' error.
Any help from you experts out there?
Transparent Picture Box
Is there a way to cause a picture box to be transparent where only an image on the picture box will be visible?
Picture - Transparent
image control can have transparent? how about picture control? how can make it transparent? help me pls?
Transparent Picture Box
I have 3 picture boxes (mask, sprite and bird), and I used BitBlt to put the final image in the "bird" picture box. The problem is that I have a background image on my form, and the final image (bird) appears with the normal grey background of the picture box...how can I make the picture box background be transparent?
Thanks!
Transparent Picture
How do I make a picture box transparent so that the background is visible behind the picture?
Picture ... Transparent?
hy, does anyone know how i could make that a picture is transparent?
-> if a picture is a logo or something not like a clear form..
the underground (backgroundd ) is black or white
how could i make the white section transparent?
thy & cya Longbow
Picture Transparent
HOW I CAN MAKE A PICTURE TRANSPARENT... FOR EXAMPLE A SHIP WITH A BLANK BACKGROUND.
Transparent Picture
When I was trying to make a shape and line have click events, I had to end up putting the Shapes and lines in pictures and then using their events. How can I make the picture box transparent so you can see what is behind it?
|