473,386 Members | 1,799 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,386 software developers and data experts.

save picture with label

i hve draw a label over the picture,i wanna know how to save the picture with label.

another problem is that how text can be drawn over picture box using print method in multiple lines.
reply me as soon as possible
Oct 16 '06 #1
9 6733
Killer42
8,435 Expert 8TB
i hve draw a label over the picture,i wanna know how to save the picture with label.

another problem is that how text can be drawn over picture box using print method in multiple lines.
reply me as soon as possible
I would be curious to find out what the story is with this, too. The Print method is no longer available for either Form or picture box - is this normal, or is it just me? I'm sure I used to use it, and it is mentioned in the online help and at various places on the web, such as http://www.engineering.usu.edu/cee/f...BGradClass.htm.
Oct 19 '06 #2
thanks killer for helping me
print method is used with picturebox to draw text over picture box
e.g picture1.print "naheed"
actually i m doing my final project
my project is related to screen capturing
main theme is to create demo.
on the captured pictures i want to draw balloon like shape and then wanna add text whatever added in text box.
i hve drawn balloon and also printed text but in one line
i wanna print in multiple line.
one idea i got that i should add text on balloon shape on label
but i m not finding help how to save picture with label
i hope u hve understand my problem
wishing urs cooperation
Oct 26 '06 #3
Killer42
8,435 Expert 8TB
thanks killer for helping me
print method is used with picturebox to draw text over picture box
e.g picture1.print "naheed"
actually i m doing my final project
my project is related to screen capturing
main theme is to create demo.
on the captured pictures i want to draw balloon like shape and then wanna add text whatever added in text box.
i hve drawn balloon and also printed text but in one line
i wanna print in multiple line.
one idea i got that i should add text on balloon shape on label
but i m not finding help how to save picture with label
i hope u hve understand my problem
wishing urs cooperation
Do you mean that when you save the picture it is just the original picture without the balloon and text you drew on it? If that is the case, you probably just need to turn on the AutoRedraw property of the picturebox before you draw anything.
Oct 26 '06 #4
Balloon shape is drawn and text is also drawn.i also know that to do drawing over picture autoredraw property must be true.there is no problem with displaying label over picture.
main problem is to save picture with label.
when i save picture balloon shape is saved but the label drawn over it was not saved.
regarding that i need urs help
thanks
Oct 29 '06 #5
Killer42
8,435 Expert 8TB
Balloon shape is drawn and text is also drawn.i also know that to do drawing over picture autoredraw property must be true.there is no problem with displaying label over picture.
main problem is to save picture with label.
when i save picture balloon shape is saved but the label drawn over it was not saved.
regarding that i need urs help
thanks
Ah! So it's actually a label control displayed over the picturebox? Hm... Can you Print the text directly onto the picturebox control, inside the balloon? You just set CurrentX & CurrentY, then use the picturebox.Print method. I don't know how else you'd go about getting it saved together.

If you are drawing two things on the picturebox (balloon then text) then saving the picture, I don't see how it could save one and not the other. Unless, perhaps, you are doing the text first and the balloon is covering it up. But presumably you would have noticed that.
Oct 29 '06 #6
Ah! So it's actually a label control displayed over the picturebox? Hm... Can you Print the text directly onto the picturebox control, inside the balloon? You just set CurrentX & CurrentY, then use the picturebox.Print method. I don't know how else you'd go about getting it saved together.

If you are drawing two things on the picturebox (balloon then text) then saving the picture, I don't see how it could save one and not the other. Unless, perhaps, you are doing the text first and the balloon is covering it up. But presumably you would have noticed that.
i am sorry, but i don't think picture box has .print method. or am i wrong? i have the same problem. how to solve it?

i have drawn lines and also put picture box in that picture box. but i cant save any although i have turn on the autoredraw property of the picture box.

can someone help?
Sep 27 '07 #7
Killer42
8,435 Expert 8TB
i am sorry, but i don't think picture box has .print method. or am i wrong? i have the same problem. how to solve it?

i have drawn lines and also put picture box in that picture box. but i cant save any although i have turn on the autoredraw property of the picture box.
As far as I know, anything you draw on the picture box while AutoRedraw is True will become a permanent part of the picture, and can be saved. However, I can never remember the relationship between the AutoRedraw property and the .Image and .Picture properties.

I don't know what VB version you are using, but in VB6 the PictureBox control does have a .Print method. What causes confusion is that for some reason it doesn't show up on the popup list of properties and methods when you type the name and add a dot. But trust me, it is there.
Sep 27 '07 #8
how is the print method works? is it for printing or saving the image? what is the appropriate coding for it? or just simply picturebox.print?
Sep 30 '07 #9
Killer42
8,435 Expert 8TB
how is the print method works? is it for printing or saving the image? what is the appropriate coding for it? or just simply picturebox.print?
You really should look in your documentation for the syntax. It prints onto the object that the method belongs to. In other words, if you said Form1.Print "Hello" it would print the word "Hello" onto the surface of Form1. The Print method is also supported by the picturebox control, the Printer object and I don't know what else.
Oct 1 '07 #10

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

Similar topics

10
by: Chris Coho, Jr. | last post by:
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...
6
by: charsh | last post by:
Hi, I using the code below to draw a text in a pictureBox1. //Start--------------------------------------------------------------- private void button1_Click(object sender, System.EventArgs e)...
2
by: Michael Lehar | last post by:
Hallo I have a pictureBox with a picture loaded from file, then I draw some lines on the picture, and then I want to save the new picture. Befor I can draw lines I have to create a Graphics...
1
by: Sam Jost | last post by:
Bitmap.Save() does crash very often on Saving jpg's. It seems to dislike pictures on a random basis, but when it dislikes a picture there is no way around it. Take for example the picture...
2
by: zheng | last post by:
ÇçÌì I have a word document and it has a picture object, I want save the picture object as other single picture file by C# program. I have a idea, by clipboard, copy the picture to clipboard, and...
5
by: arashkey | last post by:
Before this topic I save the picture with this code Dim savePath As String = Server.MapPath("picture\") If (f1.HasFile) Then pnlUpload.Visible = False ...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
13
by: Joe | last post by:
does anyone know why this source code throws an error?? Dim myBitmap As System.Drawing.Bitmap Dim myGraphics As Graphics myBitmap = New System.Drawing.Bitmap(fileName:="C:\test.tif")...
2
by: kimiraikkonen | last post by:
Hello, I want to save a picture using that code and i have a read-only textbox on the picturebox1 named "textbox2". I want users to enter their custom text using "textbox1" and save the image...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.