473,787 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HELP: How to get the outline GraphicsPath?

I have n number of circles. Some of them might overlap.
I need to draw the outline of all circles but not those overlap areas.

Initially, I am try to use a Region, because a Region object has a Union
function
Creating a GraphicsPath of 1 circle is easy. So I convert each GraphicsPath
to a Region and then Union them.
But I could not get back a GraphicsPath of the Unioned Region.

Does anyone know how to solve my problem?
Thanks.

Jul 21 '05 #1
6 2412
This is an example of a classic graphics problem known as the "convex hull"
problem. Try a search on groups.google.c om on that search term, limiting it
to the microsoft .Net groups, and see what you come up with.

Regards,
Tom Dacon
Dacon Software Consulting

"Altramagnu s" <al*********@ho tmail.com> wrote in message
news:41******** @news.starhub.n et.sg...
I have n number of circles. Some of them might overlap.
I need to draw the outline of all circles but not those overlap areas.

Initially, I am try to use a Region, because a Region object has a Union
function
Creating a GraphicsPath of 1 circle is easy. So I convert each GraphicsPath to a Region and then Union them.
But I could not get back a GraphicsPath of the Unioned Region.

Does anyone know how to solve my problem?
Thanks.

Jul 21 '05 #2
Correct me if I am wrong, but it seems a bit different.

The circles might not overlap at all, so I might end up with a graphicspath
that consists of difference circles.

The Convex Hull problem seems to me it is finding the set of points that
encompasses
the rest of the points.

Moreover I could not find anything on the microsoft .NET groups
I searched the Web instead.

Thanks anyway.

Regards,
Altramagnus

"Tom Dacon" <td****@communi ty.nospam> wrote in message
news:uD******** ******@tk2msftn gp13.phx.gbl...
This is an example of a classic graphics problem known as the "convex hull" problem. Try a search on groups.google.c om on that search term, limiting it to the microsoft .Net groups, and see what you come up with.

Regards,
Tom Dacon
Dacon Software Consulting

"Altramagnu s" <al*********@ho tmail.com> wrote in message
news:41******** @news.starhub.n et.sg...
I have n number of circles. Some of them might overlap.
I need to draw the outline of all circles but not those overlap areas.

Initially, I am try to use a Region, because a Region object has a Union
function
Creating a GraphicsPath of 1 circle is easy. So I convert each

GraphicsPath
to a Region and then Union them.
But I could not get back a GraphicsPath of the Unioned Region.

Does anyone know how to solve my problem?
Thanks.


Jul 21 '05 #3
Surprisingly it is extremely easy implementing in Java.
I did the following 2 test codes:

import java.awt.*;
import java.awt.geom.* ;
import javax.swing.*;

public class TestShape {
private static class DisplayComponen t extends JComponent {
private Shape s;
private GeneralPath p = new GeneralPath();
private Area a;

public DisplayComponen t() {
this.setSize( 500, 500 );
this.setPreferr edSize( new Dimension( 500, 500 ) );
p.append( new Ellipse2D.Doubl e( 50, 50, 50, 50 ), false );
p.append( new Ellipse2D.Doubl e( 75, 75, 50, 50 ), false );
p.append( new Ellipse2D.Doubl e( 150, 150, 50, 50 ), false );
a = new Area( p );
} // end DisplayComponen t

public void paintComponent( Graphics g ) {
Graphics2D g2d= (Graphics2D)g;
g2d.setColor( new Color( 255, 0, 0 ) );
g2d.draw( a );
} // end paintComponent
} // end clas

public static void main( String[] args ) {
JFrame frame = new JFrame();
DisplayComponen t c = new DisplayComponen t();
frame.getConten tPane().add( c );
frame.setDefaul tCloseOperation ( JFrame.EXIT_ON_ CLOSE );
frame.pack();
frame.show();
} // end main
} // end class TestShape

The corresponding CSharp test program.

using System;
using System.Drawing;
using System.Drawing. Drawing2D;
using System.Collecti ons;
using System.Componen tModel;
using System.Windows. Forms;
using System.Data;

namespace TestGraphicsPat h
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows. Forms.Form
{
private System.Windows. Forms.PictureBo x pictureBox1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.Componen tModel.Containe r components = null;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeCompo nent();

//
// TODO: Add any constructor code after InitializeCompo nent call
//
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Disp ose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
this.pictureBox 1 = new System.Windows. Forms.PictureBo x();
this.SuspendLay out();
//
// pictureBox1
//
this.pictureBox 1.Location = new System.Drawing. Point(55, 35);
this.pictureBox 1.Name = "pictureBox 1";
this.pictureBox 1.Size = new System.Drawing. Size(670, 410);
this.pictureBox 1.TabIndex = 0;
this.pictureBox 1.TabStop = false;
this.pictureBox 1.Paint += new
System.Windows. Forms.PaintEven tHandler(this.p ictureBox1_Pain t);
//
// Form1
//
this.AutoScaleB aseSize = new System.Drawing. Size(5, 13);
this.ClientSize = new System.Drawing. Size(832, 553);
this.Controls.A dd(this.picture Box1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayo ut(false);

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run (new Form1());
}

private void pictureBox1_Pai nt(object sender,
System.Windows. Forms.PaintEven tArgs e)
{
Graphics g = e.Graphics;
GraphicsPath p1 = new GraphicsPath();
GraphicsPath p2 = new GraphicsPath();
GraphicsPath p3 = new GraphicsPath();
p1.AddEllipse( 50, 50, 50, 50 );
p2.AddEllipse( 75, 75, 50, 50 );
p3.AddEllipse( 150, 150, 50, 50 );
Region r = new Region( p1 );
r.Union( p2 );
r.Union( p3 );
g.FillRegion( Brushes.White, r );
}
}
}
For java, Area is the Region equivalent.
Java , you call call graphics.draw( Area ) and it will draw the outline of
the area.
In CSharp, there isn't graphics.draw( Region ) there is only
graphics.Fill( Region )

I wonder how Java does it.
It does not seem to have much computing effort like the convex hull problem.

Thanks. However, I still need help to implement in CSharp.

Regards,
Altramagnus
"Tom Dacon" <td****@communi ty.nospam> wrote in message
news:uD******** ******@tk2msftn gp13.phx.gbl...
This is an example of a classic graphics problem known as the "convex hull" problem. Try a search on groups.google.c om on that search term, limiting it to the microsoft .Net groups, and see what you come up with.

Regards,
Tom Dacon
Dacon Software Consulting

"Altramagnu s" <al*********@ho tmail.com> wrote in message
news:41******** @news.starhub.n et.sg...
I have n number of circles. Some of them might overlap.
I need to draw the outline of all circles but not those overlap areas.

Initially, I am try to use a Region, because a Region object has a Union
function
Creating a GraphicsPath of 1 circle is easy. So I convert each

GraphicsPath
to a Region and then Union them.
But I could not get back a GraphicsPath of the Unioned Region.

Does anyone know how to solve my problem?
Thanks.


Jul 21 '05 #4
If you create the GraphicsPath with the winding fillmode you don't need to
do all that with the three regions and the union.

GraphicsPath gp=new GraphicsPath(Fi llMode.Winding) ;
gp.AddEllipse(. ...);
gp.AddEllipse(. ...);
gp.AddEllipse(. ...);
e.Graphics.Fill Path(Brushes.Bl ack,gp);
--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Altramagnu s" <al*********@ho tmail.com> wrote in message
news:41******** @news.starhub.n et.sg...
Surprisingly it is extremely easy implementing in Java.
I did the following 2 test codes:

import java.awt.*;
import java.awt.geom.* ;
import javax.swing.*;

public class TestShape {
private static class DisplayComponen t extends JComponent {
private Shape s;
private GeneralPath p = new GeneralPath();
private Area a;

public DisplayComponen t() {
this.setSize( 500, 500 );
this.setPreferr edSize( new Dimension( 500, 500 ) );
p.append( new Ellipse2D.Doubl e( 50, 50, 50, 50 ), false );
p.append( new Ellipse2D.Doubl e( 75, 75, 50, 50 ), false );
p.append( new Ellipse2D.Doubl e( 150, 150, 50, 50 ), false );
a = new Area( p );
} // end DisplayComponen t

public void paintComponent( Graphics g ) {
Graphics2D g2d= (Graphics2D)g;
g2d.setColor( new Color( 255, 0, 0 ) );
g2d.draw( a );
} // end paintComponent
} // end clas

public static void main( String[] args ) {
JFrame frame = new JFrame();
DisplayComponen t c = new DisplayComponen t();
frame.getConten tPane().add( c );
frame.setDefaul tCloseOperation ( JFrame.EXIT_ON_ CLOSE );
frame.pack();
frame.show();
} // end main
} // end class TestShape

The corresponding CSharp test program.

using System;
using System.Drawing;
using System.Drawing. Drawing2D;
using System.Collecti ons;
using System.Componen tModel;
using System.Windows. Forms;
using System.Data;

namespace TestGraphicsPat h
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows. Forms.Form
{
private System.Windows. Forms.PictureBo x pictureBox1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.Componen tModel.Containe r components = null;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeCompo nent();

//
// TODO: Add any constructor code after InitializeCompo nent call
//
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Disp ose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
this.pictureBox 1 = new System.Windows. Forms.PictureBo x();
this.SuspendLay out();
//
// pictureBox1
//
this.pictureBox 1.Location = new System.Drawing. Point(55, 35);
this.pictureBox 1.Name = "pictureBox 1";
this.pictureBox 1.Size = new System.Drawing. Size(670, 410);
this.pictureBox 1.TabIndex = 0;
this.pictureBox 1.TabStop = false;
this.pictureBox 1.Paint += new
System.Windows. Forms.PaintEven tHandler(this.p ictureBox1_Pain t);
//
// Form1
//
this.AutoScaleB aseSize = new System.Drawing. Size(5, 13);
this.ClientSize = new System.Drawing. Size(832, 553);
this.Controls.A dd(this.picture Box1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayo ut(false);

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run (new Form1());
}

private void pictureBox1_Pai nt(object sender,
System.Windows. Forms.PaintEven tArgs e)
{
Graphics g = e.Graphics;
GraphicsPath p1 = new GraphicsPath();
GraphicsPath p2 = new GraphicsPath();
GraphicsPath p3 = new GraphicsPath();
p1.AddEllipse( 50, 50, 50, 50 );
p2.AddEllipse( 75, 75, 50, 50 );
p3.AddEllipse( 150, 150, 50, 50 );
Region r = new Region( p1 );
r.Union( p2 );
r.Union( p3 );
g.FillRegion( Brushes.White, r );
}
}
}
For java, Area is the Region equivalent.
Java , you call call graphics.draw( Area ) and it will draw the outline of
the area.
In CSharp, there isn't graphics.draw( Region ) there is only
graphics.Fill( Region )

I wonder how Java does it.
It does not seem to have much computing effort like the convex hull problem.
Thanks. However, I still need help to implement in CSharp.

Regards,
Altramagnus
"Tom Dacon" <td****@communi ty.nospam> wrote in message
news:uD******** ******@tk2msftn gp13.phx.gbl...
This is an example of a classic graphics problem known as the "convex

hull"
problem. Try a search on groups.google.c om on that search term, limiting

it
to the microsoft .Net groups, and see what you come up with.

Regards,
Tom Dacon
Dacon Software Consulting

"Altramagnu s" <al*********@ho tmail.com> wrote in message
news:41******** @news.starhub.n et.sg...
I have n number of circles. Some of them might overlap.
I need to draw the outline of all circles but not those overlap areas.

Initially, I am try to use a Region, because a Region object has a Union function
Creating a GraphicsPath of 1 circle is easy. So I convert each

GraphicsPath
to a Region and then Union them.
But I could not get back a GraphicsPath of the Unioned Region.

Does anyone know how to solve my problem?
Thanks.



Jul 21 '05 #5
Thanks Bob.
I think there is a misunderstandin g.

I need to draw the outline, not to paint the entire region.

The java program is able to draw the outline, but I could not do it with C#.
With C#, I can only paint the region.

Correction. I have 3 graphicspaths and only 1 region not 3 regions.
Yes, I agree that your program will have the same effect as mine.
But what I need is to draw only the outline.

Thanks.

Regards,
Altramagnus

"Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > wrote in message
news:uu******** ******@TK2MSFTN GP11.phx.gbl...
If you create the GraphicsPath with the winding fillmode you don't need to
do all that with the three regions and the union.

GraphicsPath gp=new GraphicsPath(Fi llMode.Winding) ;
gp.AddEllipse(. ...);
gp.AddEllipse(. ...);
gp.AddEllipse(. ...);
e.Graphics.Fill Path(Brushes.Bl ack,gp);
--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Altramagnu s" <al*********@ho tmail.com> wrote in message
news:41******** @news.starhub.n et.sg...
Surprisingly it is extremely easy implementing in Java.
I did the following 2 test codes:

import java.awt.*;
import java.awt.geom.* ;
import javax.swing.*;

public class TestShape {
private static class DisplayComponen t extends JComponent {
private Shape s;
private GeneralPath p = new GeneralPath();
private Area a;

public DisplayComponen t() {
this.setSize( 500, 500 );
this.setPreferr edSize( new Dimension( 500, 500 ) );
p.append( new Ellipse2D.Doubl e( 50, 50, 50, 50 ), false );
p.append( new Ellipse2D.Doubl e( 75, 75, 50, 50 ), false );
p.append( new Ellipse2D.Doubl e( 150, 150, 50, 50 ), false );
a = new Area( p );
} // end DisplayComponen t

public void paintComponent( Graphics g ) {
Graphics2D g2d= (Graphics2D)g;
g2d.setColor( new Color( 255, 0, 0 ) );
g2d.draw( a );
} // end paintComponent
} // end clas

public static void main( String[] args ) {
JFrame frame = new JFrame();
DisplayComponen t c = new DisplayComponen t();
frame.getConten tPane().add( c );
frame.setDefaul tCloseOperation ( JFrame.EXIT_ON_ CLOSE );
frame.pack();
frame.show();
} // end main
} // end class TestShape

The corresponding CSharp test program.

using System;
using System.Drawing;
using System.Drawing. Drawing2D;
using System.Collecti ons;
using System.Componen tModel;
using System.Windows. Forms;
using System.Data;

namespace TestGraphicsPat h
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows. Forms.Form
{
private System.Windows. Forms.PictureBo x pictureBox1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.Componen tModel.Containe r components = null;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeCompo nent();

//
// TODO: Add any constructor code after InitializeCompo nent call
//
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Disp ose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
this.pictureBox 1 = new System.Windows. Forms.PictureBo x();
this.SuspendLay out();
//
// pictureBox1
//
this.pictureBox 1.Location = new System.Drawing. Point(55, 35);
this.pictureBox 1.Name = "pictureBox 1";
this.pictureBox 1.Size = new System.Drawing. Size(670, 410);
this.pictureBox 1.TabIndex = 0;
this.pictureBox 1.TabStop = false;
this.pictureBox 1.Paint += new
System.Windows. Forms.PaintEven tHandler(this.p ictureBox1_Pain t);
//
// Form1
//
this.AutoScaleB aseSize = new System.Drawing. Size(5, 13);
this.ClientSize = new System.Drawing. Size(832, 553);
this.Controls.A dd(this.picture Box1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayo ut(false);

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run (new Form1());
}

private void pictureBox1_Pai nt(object sender,
System.Windows. Forms.PaintEven tArgs e)
{
Graphics g = e.Graphics;
GraphicsPath p1 = new GraphicsPath();
GraphicsPath p2 = new GraphicsPath();
GraphicsPath p3 = new GraphicsPath();
p1.AddEllipse( 50, 50, 50, 50 );
p2.AddEllipse( 75, 75, 50, 50 );
p3.AddEllipse( 150, 150, 50, 50 );
Region r = new Region( p1 );
r.Union( p2 );
r.Union( p3 );
g.FillRegion( Brushes.White, r );
}
}
}
For java, Area is the Region equivalent.
Java , you call call graphics.draw( Area ) and it will draw the outline of the area.
In CSharp, there isn't graphics.draw( Region ) there is only
graphics.Fill( Region )

I wonder how Java does it.
It does not seem to have much computing effort like the convex hull

problem.

Thanks. However, I still need help to implement in CSharp.

Regards,
Altramagnus
"Tom Dacon" <td****@communi ty.nospam> wrote in message
news:uD******** ******@tk2msftn gp13.phx.gbl...
This is an example of a classic graphics problem known as the "convex

hull"
problem. Try a search on groups.google.c om on that search term, limiting
it
to the microsoft .Net groups, and see what you come up with.

Regards,
Tom Dacon
Dacon Software Consulting

"Altramagnu s" <al*********@ho tmail.com> wrote in message
news:41******** @news.starhub.n et.sg...
> I have n number of circles. Some of them might overlap.
> I need to draw the outline of all circles but not those overlap

areas. >
> Initially, I am try to use a Region, because a Region object has a

Union > function
> Creating a GraphicsPath of 1 circle is easy. So I convert each
GraphicsPath
> to a Region and then Union them.
> But I could not get back a GraphicsPath of the Unioned Region.
>
> Does anyone know how to solve my problem?
> Thanks.
>
>
>



Jul 21 '05 #6
Yep, you're right. Sorry about that.

Tom

"Altramagnu s" <al*********@ho tmail.com> wrote in message
news:41******** @news.starhub.n et.sg...
Correct me if I am wrong, but it seems a bit different.

The circles might not overlap at all, so I might end up with a graphicspath that consists of difference circles.

The Convex Hull problem seems to me it is finding the set of points that
encompasses
the rest of the points.

Moreover I could not find anything on the microsoft .NET groups
I searched the Web instead.

Thanks anyway.

Regards,
Altramagnus

"Tom Dacon" <td****@communi ty.nospam> wrote in message
news:uD******** ******@tk2msftn gp13.phx.gbl...
This is an example of a classic graphics problem known as the "convex

hull"
problem. Try a search on groups.google.c om on that search term, limiting

it
to the microsoft .Net groups, and see what you come up with.

Regards,
Tom Dacon
Dacon Software Consulting

"Altramagnu s" <al*********@ho tmail.com> wrote in message
news:41******** @news.starhub.n et.sg...
I have n number of circles. Some of them might overlap.
I need to draw the outline of all circles but not those overlap areas.

Initially, I am try to use a Region, because a Region object has a Union function
Creating a GraphicsPath of 1 circle is easy. So I convert each

GraphicsPath
to a Region and then Union them.
But I could not get back a GraphicsPath of the Unioned Region.

Does anyone know how to solve my problem?
Thanks.



Jul 21 '05 #7

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

Similar topics

11
7653
by: Altramagnus | last post by:
I have a complicated Region object, which I need to draw the outline, but not fill How can I convert the Region object to GraphicsPath object? or How can I draw the outline of the Region object?
2
2203
by: Jose Michael Meo R. Barrido | last post by:
I made a custom runded rectangle usercontrol. I used a function i found on the internet. the function works fine(see "GetRoundRect" below). I use the fullowing code to make my usercontrol rounded.... ***************************************************** Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim x1 As Integer = 0 Dim x2 As Integer = Me.ClientSize.Width Dim iHeight As Int32 = Me.Height Dim...
6
10064
by: Altramagnus | last post by:
I have n number of circles. Some of them might overlap. I need to draw the outline of all circles but not those overlap areas. Initially, I am try to use a Region, because a Region object has a Union function Creating a GraphicsPath of 1 circle is easy. So I convert each GraphicsPath to a Region and then Union them. But I could not get back a GraphicsPath of the Unioned Region. Does anyone know how to solve my problem?
1
11959
by: jay | last post by:
I have a bitmap and a graphicspath object. I draw pixels on m_Bitmap and I'm drawing text using m_Graphics GraphicsPath object. However, saving my work with m_Bitmap.Save doesn't save GraphicsPath along with it. How do I save it all in a single file? Or how do I "glue" graphicspath to bitmap so they save together? thanks,
7
2087
by: Crirus | last post by:
Hi Is that true that this IsVisible method is incredible slow? Seems that my app is much slower with only this added as a condition to draw something Crirus
16
1847
by: Crirus | last post by:
I have a graphics path composed from multiple circles that may overlap... That graphics path I need it converted to a string and that string I whould like to be as small as possible Any ideeas? -- Cheers, Crirus
2
13966
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
1946
by: Don | last post by:
When creating a new region for a control via a GraphicsPath object, it appears the entire rightmost column of pixels and bottom most row of pixels are not included in the region. I will try to clarify with some ASCII art. Imagine a GraphicsPath describing a 4x4 pixel square with rounded corners (X = pixel, _ = blank) _ X X _ X X X X X X X X
2
5446
by: Martijn Mulder | last post by:
/* GraphicsPath.IsVisible() gives unexpected results. I fill a System.Drawing.Drawing2D.GraphicsPath-object with PointF-structures that define the unit-square (0,0), (1,0), (1,1) and (0,1). Then I test 3 different PointF-structures to see if they fall inside the unit- square and the results are clearly wrong: Point(-0.2, -0.2) falls inside the unit square... WRONG!!! Point(0.2, 0.2) falls inside the unit square... Point(0.7, 0.7) falls...
0
9655
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10169
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
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,...
0
9964
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6749
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();...
0
5398
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...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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 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...

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.