473,508 Members | 4,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to draw line on Image?

Hello all:
I want to draw some shapes, such as lines, circles on an image.

The input to the program is an image and the output from the program is
a superimposed image.

what kind of document or functions I should take a look for searching
this question?

The program doesn't show the image, but draws some shapes on the input
image.
Thank you
-daniel

Aug 18 '06 #1
3 3881
"Daniel Mark" <da***********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
I want to draw some shapes, such as lines, circles on an image.

http://www.pythonware.com/library/pi...ook/psdraw.htm

hth,
Alan Isaac
Aug 18 '06 #2
"David Isaac" <ai*****@verizon.netwrote in message
news:3CkFg.855$uV.546@trnddc08...
"Daniel Mark" <da***********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
I want to draw some shapes, such as lines, circles on an image.


http://www.pythonware.com/library/pi...ook/psdraw.htm

hth,
Alan Isaac

ImageDraw (http://www.pythonware.com/library/pi.../imagedraw.htm)
might be more generally helpful than PSDraw.

-- Paul
Aug 18 '06 #3
Paul McGuire wrote:
"David Isaac" <ai*****@verizon.netwrote in message
news:3CkFg.855$uV.546@trnddc08...
>>"Daniel Mark" <da***********@gmail.comwrote in message
news:11**********************@b28g2000cwb.google groups.com...
>>>I want to draw some shapes, such as lines, circles on an image.


http://www.pythonware.com/library/pi...ook/psdraw.htm

hth,
Alan Isaac



ImageDraw (http://www.pythonware.com/library/pi.../imagedraw.htm)
might be more generally helpful than PSDraw.

-- Paul

And if the quality of the result is important maybe (maybe, because I
haven't used it yet myself)
aggdraw
an add-on to the PIL library that supports anti-aliased drawing
http://effbot.org/zone/draw-agg.htm

Claudio Grondi
Aug 18 '06 #4

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

Similar topics

21
3041
by: DraguVaso | last post by:
Hi, I have an inherited DataGrid, that does lots of extra stuff. For exemple drawing a backgroundimage in every cell. The problem is that it's taking too much time (using gdi+), so I want to do...
6
3979
by: felix | last post by:
Hi, I have an Image that is drawn with Graphics.DrawImage(..). What I want to do is drawing it with a given transparency, e.g. at an alpha of only 180 instead of 255. How am I doing that?!?!?...
1
1109
by: M O J O | last post by:
Hi, I'm creating a webapplication where the end user must fill in a form, draw an image and post it back to the webserver. My problem is, that I can't figure out, if it's possible to have the...
4
5141
by: thomasp | last post by:
I found the following code on MSDN to draw a line in VB2005. Public Sub DrawLinePoint(ByVal e As PaintEventArgs) ' Create pen. Dim blackPen As New Pen(Color.Black, 3) ' Create points that...
1
4310
by: zxo102 | last post by:
Hi everyone, I have tried two days to figure out how to draw the image in wx.BufferedDC on the page created by AddPage of wx.Notebook but still got no clue. The attached example works fine. If...
4
2410
by: annsh | last post by:
Hi On a windows form - I want to be able to allow a user to draw an image (on a graphics tablet). Its for an application for selling carpets - customer comes in and describes room where carpet...
0
7228
marktang
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,...
0
7128
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
7502
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...
1
5057
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...
0
4715
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...
0
3206
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...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.