473,569 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drawing anti-aliased lines using the GD library

I was following an article on a website earlier, and although it
outputted the pie chart for me perfectly, I want to make it anti-
aliased somehow. I have linked to the specific article below just in
case you wish to replicate for testing the anti-aliasing. I found the
GD function, imageantialias( ) but I've tried setting it to true at the
top of the code just after the imagecreate() function - but to no
avail.

Article: http://www.talkphp.com/showthread.php?t=1629

Somebody please help me!! I'd really love to get the anti-aliasing to
work as it'd then be perfect for what I need it for. With it looking
rough at the moment it looks naturally unpolished which is no good for
my client :(

Thank youu in advance!
Dec 10 '07 #1
2 4648
Greetings, ad************* @gmail.com.
In reply to Your message dated Monday, December 10, 2007, 12:28:03,
I was following an article on a website earlier, and although it
outputted the pie chart for me perfectly, I want to make it anti-
aliased somehow. I have linked to the specific article below just in
case you wish to replicate for testing the anti-aliasing. I found the
GD function, imageantialias( ) but I've tried setting it to true at the
top of the code just after the imagecreate() function - but to no
avail.
Article: http://www.talkphp.com/showthread.php?t=1629
Somebody please help me!! I'd really love to get the anti-aliasing to
work as it'd then be perfect for what I need it for. With it looking
rough at the moment it looks naturally unpolished which is no good for
my client :(
Thank youu in advance!
Please provide a code snip and result example to illustrate Your problem.
We can't help You without it.
--
Sincerely Yours, AnrDaemon <an*******@free mail.ru>

Dec 10 '07 #2
ad************* @gmail.com wrote:
I was following an article on a website earlier, and although it
outputted the pie chart for me perfectly, I want to make it anti-
aliased somehow. I have linked to the specific article below just in
case you wish to replicate for testing the anti-aliasing. I found the
GD function, imageantialias( ) but I've tried setting it to true at the
top of the code just after the imagecreate() function - but to no
avail.

Article: http://www.talkphp.com/showthread.php?t=1629

Somebody please help me!! I'd really love to get the anti-aliasing to
work as it'd then be perfect for what I need it for. With it looking
rough at the moment it looks naturally unpolished which is no good for
my client :(

Thank youu in advance!
Adam,

I'm not sure what you're looking at. The article you referenced is
about bar charts.

What errors (or what bad result) do you get? And just out of curiosity,
why do you need it anti-aliased?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Dec 10 '07 #3

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

Similar topics

0
2240
by: Jason | last post by:
Hi guys, I am having problems with VML. I had been working on a problem for sometime now, and I just recently discovered what the problem really was: VML was anti-aliasing my rectangles, but I didn't want it too. So I added the following attribute to my rectangles which solved the problem somewhat: antialias: false; On my monitor, the...
1
2642
by: Lex | last post by:
I have a c# app that has a OwnerDrawn menu items. Is there and easy way to use DrawString to draw the underline under the mnemonic character? BTW - I figured out how to detected if we should be showing the underline or not from my draw method: if ((e.State.Equals(DrawItemState.None)) || (e.State.Equals(DrawItemState.Selected)))
5
1910
by: Lex | last post by:
As you may have seen in other posts I have a C# app that has custom shortcuts so I need to OwnerDraw my MenuItems. Thanx to vJ and Mick for the tips so far. I am almost there :-) My last (I hope) issue is aligning the menu text and shortcut text properly. I need it to line up as if there are two columns - 1 for the menu text and one for...
17
2264
by: rgoya | last post by:
Peace be with you! About a year ago, I created a JavaScript which turns any web site into an online anti-war protest: http://www.geocities.com/rgoya/javascript/PROTEST.HTM I have recently revamped the anti-war quotes quiz: http://www.geocities.com/rgoya/javascript/PROTCODE.HTM#usaquiz Please feel free to
3
4268
by: Michel | last post by:
Is there a way I can anti-aliasing a gif to be able to get a hi-quality resizeable backgroundpicture. When a GIF of JPG is being resized by the browser you get wurse pictures because it needs a anti-aliasing. Maybe there is some filter for it... Or can I write my own subroutine to do this in client-browsers?
6
5305
by: Boni | last post by:
Dear all, I have about 500 rectangles on the picturebox, and if I take one with the move and move I MUST clear the whole picture and redraw, which takes about 1-2 second. The rectangles are drawen with FillRectangle(.). Is there a better way to have the whole rendering much faster. (I have no problem with flickers, because of rendering into...
2
13942
by: Lou | last post by:
I need to have a Face,Outline and drop shadow. I am close but can't get my code to work. The face and outline work fine but the shadow is not sized correctly??? Dim rec As New Rectangle(PictureBox1.Left, PictureBox1.Top, PictureBox1.Height, PictureBox1.Height) Try 'Set the Font
4
1317
by: Max | last post by:
I finally figured out how to enable XP style on VB .NET apps, but now when I want a button to show an image it seems to disappear when the xp style is enabled. Actually the image disappears whenever a button's FlatStyle property is set to System which is what it has to be for XP Style to work. So my question is, what's the best way of showing...
7
2122
by: Stefan0 | last post by:
Hi, I'd like to draw a circle on the screen using GDI+ I'm using the DrawEllipse method with width = height and I set the SmootingMode to SmoothingModeAntiAlias but the circle is "squared". Is there a way to draw a "smoothed" circle ? Thanks in advance Stefano
2
1765
by: Lloyd Dupont | last post by:
In my .NET app I have to use some home-made, Uniscribe based, text drawing with ScriptTextOut which, ultimately, calls ExtTextOut.. I would like to setup things like text quality, anti aliasing, etc.... What API should I look into? Thanks! :-)
0
7703
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, 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...
0
8138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
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...
0
7983
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 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...
0
5223
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...
0
3657
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...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
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 we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.