473,406 Members | 2,849 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,406 software developers and data experts.

drawing Cirles and Lines above a Picture in PictureBox

Hi,

I have a PictureBox in which I have a picture displayed. Now I want to have
some lines and circles drawed above the picture. How do I do this?

thanks in advance,

Pieter
Nov 21 '05 #1
2 936
Hi,

Dim g as graphics = picturebox1.creategraphics

g.drawellipse(pens.black,0,0,10,10)

Ken
----------------------
"DraguVaso" <pi**********@hotmail.com> wrote in message
news:us**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have a PictureBox in which I have a picture displayed. Now I want to have
some lines and circles drawed above the picture. How do I do this?

thanks in advance,

Pieter

Nov 21 '05 #2
Do you need to dispose the graphics object?

--
Jonathan Allen
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:el*************@TK2MSFTNGP11.phx.gbl...
Hi,

Dim g as graphics = picturebox1.creategraphics

g.drawellipse(pens.black,0,0,10,10)

Ken
----------------------
"DraguVaso" <pi**********@hotmail.com> wrote in message
news:us**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have a PictureBox in which I have a picture displayed. Now I want to have some lines and circles drawed above the picture. How do I do this?

thanks in advance,

Pieter

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Christina Androne | last post by:
Hi I want to allow the user to drow some locators on an image and connect the locators with lines. So I tried to put the following code in the onmousedown enevt of the picture: Graphics...
13
by: Metallicraft | last post by:
I have a vb6 application. On the main form is a picture box with one or two images and several pieces of text displayed in it. These are created on the fly using gdi32 routines that are all in a...
2
by: George | last post by:
Dear colleagues, I refer to your help with specific graphic problem. It is necessary to create a viewfinder in graphic application. It seems that the algorithm is simple: just draw lines in...
2
by: Vishruth | last post by:
I want to plot the lines in the form automatically by retrieving the values of X and Y coordinates from the Access database.The X and Y fields in my access database has about 50 or more records.I...
2
by: kalp suth via DotNetMonster.com | last post by:
I want to create arrows using lines on a picture in the picture box. On clicking the button "btnShowAll", the image is loaded and the lines drawn. "RGSShowAll()" calls "DrawObjs()" which does the...
1
by: Kevin | last post by:
I have a form with a Picturebox on it. I also have a class that contains data that I want to graph in the picture box. How do I pass the PictureBox to a method of the class and have the method...
9
by: davetelling | last post by:
I am not a programmer, I'm an engineer trying to make an interface to a product I'm designing. I have used C# to make a form that interrogates the unit via the serial port and receives the data. I...
4
by: Peter | last post by:
Hi, I remember in VB6 that one could simply draw a line in a picturebox using the .Line method. There is no equivalent in .NET; everything I read says it is necessary to do lots of heavily...
5
by: Macias | last post by:
Hi, Please help me, how I can make a line drawing on PictureBox similar to MS paint. I thinking about this: click and hold button, move mouse and relase button. I'm trying useing this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...
0
tracyyun
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...
0
isladogs
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...

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.