It is possible to draw a line on a control using AA? basically, i need the normal .DrawLine funcion but that support antia aliasing.
is this possible? can somebody tellme how?
Thanks for the help, as usual 4 5761
Hi, It is possible to draw a line on a control using AA? basically, i need the normal .DrawLine funcion but that support antia aliasing. is this possible? can somebody tellme how?
Antialiasing is set in the Graphics object of your control, for example with
a Form:
Graphics g = frm.CreateGraph ics();
g.SmoothingMode = SmoothingMode.A ntiAlias;
g.DrawLine(...) ;
g.Dispose();
Regards,
--
Frank Eller [.NET MVP] www.frankeller.de
..NET Developers Group Munich- www.munichdot.net
Sorry, I used C# code in the answer ... :
Dim g as Graphics
g = frm1.CreateGrap hics()
g.SmoothingMode = SmoothingMode.A ntiAlias
....
Regards,
--
Frank Eller [.NET MVP] www.frankeller.de
..NET Developers Group Munich- www.munichdot.net
Oh my godness, you are my hero, i never thought it was that easy...
I was already expecting a "use DX9 your lammer" answer, hehe
Thanks a lot!
"Frank Eller [MVP]" <fe@frankeller. de> wrote in message news:#S******** *****@TK2MSFTNG P11.phx.gbl... Hi,
It is possible to draw a line on a control using AA? basically, i need the normal .DrawLine funcion but that support antia aliasing. is this possible? can somebody tellme how?
Antialiasing is set in the Graphics object of your control, for example with a Form:
Graphics g = frm.CreateGraph ics(); g.SmoothingMode = SmoothingMode.A ntiAlias; g.DrawLine(...) ; g.Dispose();
Regards,
-- Frank Eller [.NET MVP] www.frankeller.de .NET Developers Group Munich- www.munichdot.net
* "Smoke" <sm***@netgate. com.uy> scripsit: It is possible to draw a line on a control using AA? basically, i need the normal .DrawLine funcion but that support antia aliasing. is this possible? can somebody tellme how?
Set the 'Graphics' object's 'SmootingMode' to an appropriate value
before drawing the line.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Leif Wessman |
last post by:
From: http://www.php.net/manual/en/function.imagettftext.php
"color is the color index. Using the negative of a color index has the
effect of turning off antialiasing."
I'm using a bundled version of GD: 2.0.23 compatible. When using the
function imagettftext() with a negative color to get a aliased text as
stated in the docs the text gets grainy. Not antialised, and not
aliased. Something in between (ugly!). I've tried several fonts....
|
by: Jon Cosby |
last post by:
I'm using this to draw rectangles in a PictureBox image. Not all of the
rectangles are complete, and after drawing several, some of them start
disapearing. What's the reason for this?
Pen selPen = new Pen(Color.White);
Graphics graphic = this.PicBox.CreateGraphics();
..................
|
by: Rich |
last post by:
Hello,
I am trying to draw a graph on a form. I can draw the box
using drawline, and bars inside the box using
drawrectangle, but when I try to draw a line inside the
box the inner lines are not showing up. Do I need to use
a property or something?
Here is the code for my lines
|
by: google_groups3 |
last post by:
Hi, is it better practise to draw a line on my form using the
Graphics.DrawLine command or should I use a label control instead?
I am refering to overall speed of the form and amount of memory used.
TIA
|
by: John |
last post by:
I created a number of pictureboxes in a panel, and want to draw lines in
those pictureboxes but I cannot. Please see the following code and make
corrections.
Thanks.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Panel1.AutoScroll = True
Panel1.Width = 200
Panel1.Height = 200
| |
by: Lila Godel |
last post by:
I am migrating my VB6 GoldMine add-ons to VB.NET to allow for
enhancements. I have no problem getting text to print, but I cannot get the
4 PrintPage events that are needed to print a line to work.
I need a line that has a width of 5 that starts 3.797 inches from the top
edge of the paper, starts 0.613 inches from the left edge of the paper and
ends at the edge of the paper so I know where to trim the paper for proper
insertion in a form...
|
by: Turbot |
last post by:
Does anyone know how to stop a RichTextBox control from antialiasing
the text you enter into it?
|
by: Ben Bush |
last post by:
I had the following code and when I clicked the left mouse button one
time. I got green line and the second click got a purple line and the
green disappeared.
I was confused by two questions:
First, Clicknum increases when every time I click the button. Is it
possible to reset Clicknum to 0?
Second, how to do something like: I click the left button the first
time, the green line appear then disappear, the purple line
appear(just as the...
|
by: Hvid Hat |
last post by:
Hi
Is it somehow possible to call Graphics.DrawLine with List<Point>? Does it
only take Point arrays? If so, how can I (easily) convert my List<Point>
to a Point array?
|
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: 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: 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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |