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
9 6772
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.
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
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.
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
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.Prin t 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.
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.Prin t 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?
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.
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.prin t?
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.prin t?
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 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...
|
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)
{
Graphics g;
g = pictureBox1.CreateGraphics();
g.FillRectangle(Brushes.White,0,0,160,160);
|
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 object, with g =
pictureBox.CreateGraphic, and draw lines g.drawLines(....)
But when saving the picture, the new picture have no lines, it is only
a copy.
|
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
http://home.foni.net/~sjost/fremd/IMGP5753-2.JPG
I load the picture, and save it rotated by 270 degree. Works like charm:
public void Rotate270AndSaveTest()
|
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 then save as a file from
clipboard, it is work well in application,but don't work in a web
application. how can I to do? and are there other ideas to save the picture
object in web application?
help me !!
| |
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
lblMessage.Text = "<embed align=bottom src=""inc/u.swf"" ></embed>"
Dim fileName As String = f1.FileName
Try
savePath &= CInt(intPic) & "." & pasvand
Catch ex As Exception
|
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 html is:
<a class="searchsavechanges btn btn3d tbbtn" href="javascript:"
style="position:static">
<div id="TBsearchsavechanges">Search</div>
</a>
|
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")
myGraphics = PictureBox1.CreateGraphics
Dim expansionRectangle As New Rectangle(25, 550, 1000, 350)
Dim destRectangle1 As New Rectangle(0, 0, 1000, 350)
myGraphics.DrawImage(myBitmap, destRectangle1, expansionRectangle,
|
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 with the text associated to textbox2.text (will be saved/
displayed on picturebox1)
But when i save the picturebox1 is saved empty textbox.
How can i do that?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |