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

directx or opengl

I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.
Feb 11 '06 #1
14 2613

"Jessica Weiner" <je*****@gmail.com> wrote in message
news:VC*******************@newssvr29.news.prodigy. net...
I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.
Should add GDI+ to the mix.

It depends if you want a retained-mode or direct-mode system, what sort of
transformations you want to do, types of texturing, transformations,
hardware acceleration support, printing support, exporting support, etc.
You should also look a pre-made controls for the graphs/plots (some great
stuff out there) or if you need to roll your own, a retained-mode vector
library over GDI+.


Feb 12 '06 #2
Sorry, because this is not the answer you expect, but why don't you try with
GDI+?
You will probably find there everything you need...

Cheers,

Michel.
"Jessica Weiner" <je*****@gmail.com> a écrit dans le message de news:
VC*******************@newssvr29.news.prodigy.net.. .
I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.

Feb 13 '06 #3

"Jessica Weiner" <je*****@gmail.com> wrote in message
news:VC*******************@newssvr29.news.prodigy. net...
|I am writing an application in C# which need to plot graphs and simple
| shapes (polygons, circles, squares etc). Which library is better for this
| purpose and why? Thanks.
|
|

System.Drawing and System.Drawing.Drawing2D do contain the classes that wrap
GDI++ and are in general all you need to draw simple shapes.
Willy.
Feb 13 '06 #4
For the purpose of planning ahead, I would use DirectX, if it was a choice
between the 2. DirectX is going to be part of the foundation of Windows
Presentation Services in Windows Vista.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:ec*************@TK2MSFTNGP15.phx.gbl...

"Jessica Weiner" <je*****@gmail.com> wrote in message
news:VC*******************@newssvr29.news.prodigy. net...
|I am writing an application in C# which need to plot graphs and simple
| shapes (polygons, circles, squares etc). Which library is better for
this
| purpose and why? Thanks.
|
|

System.Drawing and System.Drawing.Drawing2D do contain the classes that
wrap
GDI++ and are in general all you need to draw simple shapes.
Willy.

Feb 13 '06 #5
You are gonna use the WMP classes and/or XAML for this do you, DirectX is
not the API to use from WPF.

Willy.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
| For the purpose of planning ahead, I would use DirectX, if it was a choice
| between the 2. DirectX is going to be part of the foundation of Windows
| Presentation Services in Windows Vista.
|
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
| "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
| news:ec*************@TK2MSFTNGP15.phx.gbl...
| >
| > "Jessica Weiner" <je*****@gmail.com> wrote in message
| > news:VC*******************@newssvr29.news.prodigy. net...
| > |I am writing an application in C# which need to plot graphs and simple
| > | shapes (polygons, circles, squares etc). Which library is better for
| > this
| > | purpose and why? Thanks.
| > |
| > |
| >
| > System.Drawing and System.Drawing.Drawing2D do contain the classes that
| > wrap
| > GDI++ and are in general all you need to draw simple shapes.
| >
| >
| > Willy.
| >
| >
|
|
Feb 13 '06 #6
> You are gonna use the WMP classes and/or XAML for this do you, DirectX is
not the API to use from WPF.
First of all, XAML is a presentation language. See
http://windowssdk.msdn.microsoft.com...40017c22e4.asp

You don't write graphics programming code with it. See
http://windowssdk.msdn.microsoft.com...asp?frame=true.

Direct3D is the graphics "layer" for Windows Vista. See
http://msdn.microsoft.com/windowsvista/experience/

To quote:

"A new graphics driver model has been introduced with Windows Vista that is
stable and secure; it has built-in fault tolerance to enable constant use of
the graphics processor unit (GPU) for the rich graphics sported by the
operating system and the applications. The GPU memory manager and scheduler
in this driver model enable multiple graphics applications to use the GPU to
run simultaneously.
Windows Graphics Foundation 2.0 (WGF), also known as Direct3D10, sits on top
of, but is distinct from, the new driver model. Applications can use this
application programming interface (API) for compelling next-generation
cinematographic visuals as well as taking advantage of the massive
computational horsepower available on the GPU for more general purpose
applications that are easily parallelized (termed GPGPU). An example of such
use is image processing."
And WMP is an acronym for "Windows Media Player," which has nothing to do
this topic.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... You are gonna use the WMP classes and/or XAML for this do you, DirectX is
not the API to use from WPF.

Willy.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eQ**************@TK2MSFTNGP09.phx.gbl...
| For the purpose of planning ahead, I would use DirectX, if it was a
choice
| between the 2. DirectX is going to be part of the foundation of Windows
| Presentation Services in Windows Vista.
|
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
| "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
| news:ec*************@TK2MSFTNGP15.phx.gbl...
| >
| > "Jessica Weiner" <je*****@gmail.com> wrote in message
| > news:VC*******************@newssvr29.news.prodigy. net...
| > |I am writing an application in C# which need to plot graphs and
simple
| > | shapes (polygons, circles, squares etc). Which library is better for
| > this
| > | purpose and why? Thanks.
| > |
| > |
| >
| > System.Drawing and System.Drawing.Drawing2D do contain the classes
that
| > wrap
| > GDI++ and are in general all you need to draw simple shapes.
| >
| >
| > Willy.
| >
| >
|
|

Feb 13 '06 #7
1. You aren't supposed to program against DirectX on Vista (at least not in
managed code, which is what this NG is about, right?), you are gonna use
WinFX and the WPF framework classes which are a managed layer on top of
DirectX on XP or on top of a new graphics engine WGF, costing of Direct3D10
and the new hardware accelerated Graphics drivers on Vista.
Watch this...
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp

2.XAML is a new XML-based declarative programming language with the
potential to create UI without the need for code, and the potential of
drawing 2D shapes without code, which was the OP's request. <snip from the
URL you posted...
XAML enables you to create a UI without using code. You can create quite
elaborate documents or pages entirely in markup using controls, text,
images, shapes and so forth.
/snip>

3.
| You don't write graphics programming code with it. See ..
http://windowssdk.msdn.microsoft.com...asp?frame=true.

This page refers to the "unmanaged DirectX" interfaces available on Vista.
This is the API used by applications written in 'native' C++ code, are Vista
only API's and must run on hardware that implements the Windows Vista WDDM
(new driver model for hardware accelerated Graphical devices).

and ....
| And WMP is an acronym for "Windows Media Player," which has nothing to do
| this topic.

was a typo, sorry.

Willy.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
|> You are gonna use the WMP classes and/or XAML for this do you, DirectX is
| > not the API to use from WPF.
|
| First of all, XAML is a presentation language. See
|
http://windowssdk.msdn.microsoft.com...40017c22e4.asp
|
| You don't write graphics programming code with it. See
|
http://windowssdk.msdn.microsoft.com...asp?frame=true.
|
| Direct3D is the graphics "layer" for Windows Vista. See
| http://msdn.microsoft.com/windowsvista/experience/
|
| To quote:
|
| "A new graphics driver model has been introduced with Windows Vista that
is
| stable and secure; it has built-in fault tolerance to enable constant use
of
| the graphics processor unit (GPU) for the rich graphics sported by the
| operating system and the applications. The GPU memory manager and
scheduler
| in this driver model enable multiple graphics applications to use the GPU
to
| run simultaneously.
| Windows Graphics Foundation 2.0 (WGF), also known as Direct3D10, sits on
top
| of, but is distinct from, the new driver model. Applications can use this
| application programming interface (API) for compelling next-generation
| cinematographic visuals as well as taking advantage of the massive
| computational horsepower available on the GPU for more general purpose
| applications that are easily parallelized (termed GPGPU). An example of
such
| use is image processing."
|
|
| And WMP is an acronym for "Windows Media Player," which has nothing to do
| this topic.
|
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
|
| "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
| news:%2****************@TK2MSFTNGP12.phx.gbl...
| > You are gonna use the WMP classes and/or XAML for this do you, DirectX
is
| > not the API to use from WPF.
| >
| > Willy.
| >
| >
| >
| > "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
| > news:eQ**************@TK2MSFTNGP09.phx.gbl...
| > | For the purpose of planning ahead, I would use DirectX, if it was a
| > choice
| > | between the 2. DirectX is going to be part of the foundation of
Windows
| > | Presentation Services in Windows Vista.
| > |
| > | --
| > | HTH,
| > |
| > | Kevin Spencer
| > | Microsoft MVP
| > | .Net Developer
| > | We got a sick zebra a hat,
| > | you ultimate tuna.
| > |
| > |
| > | "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
| > | news:ec*************@TK2MSFTNGP15.phx.gbl...
| > | >
| > | > "Jessica Weiner" <je*****@gmail.com> wrote in message
| > | > news:VC*******************@newssvr29.news.prodigy. net...
| > | > |I am writing an application in C# which need to plot graphs and
| > simple
| > | > | shapes (polygons, circles, squares etc). Which library is better
for
| > | > this
| > | > | purpose and why? Thanks.
| > | > |
| > | > |
| > | >
| > | > System.Drawing and System.Drawing.Drawing2D do contain the classes
| > that
| > | > wrap
| > | > GDI++ and are in general all you need to draw simple shapes.
| > | >
| > | >
| > | > Willy.
| > | >
| > | >
| > |
| > |
| >
| >
|
|
Feb 13 '06 #8
Hi Willy,
1. You aren't supposed to program against DirectX on Vista (at least not
in
managed code, which is what this NG is about, right?), you are gonna use
WinFX and the WPF framework classes which are a managed layer on top of
DirectX on XP or on top of a new graphics engine WGF, costing of
Direct3D10
and the new hardware accelerated Graphics drivers on Vista.
Watch this...
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp
First of all, the documentation you referred to was about a very limited set
of UI graphics, not all graphics, which includes 3D drawing. That particular
reference was to UI Controls only. In other words, there is a very limited
set of (UI only) drawing you can do with this particular set of tools, which
is UI-specific. To give you an example from the current platform, you can
create a form and you can override the Paint event to draw in 2 Dimensions
on a Control. However, you cannot draw a 3D game interface on a Control
using GDI+ or System.Drawing.Graphics. For that, you have to use DirectX.

These UI classes run on top of DirectX. They are not DirectX, but you can
certainly draw using DirectX "directly." And, if you recall from my original
reply, I recommended DirectX *over OpenGL*, since in Vista, OpenGL is likely
to sit on top of DirectX as well, and therefore, not perform quite as well.
That I can't be sure of, but that is how I'd bet.

As for DirectX being managed, I've been working with Managed Direct3D for
almost 2 years now. No, the most current release of the DirectX SDK does not
contain a Managed DirectX library for Windows Vista. But it's coming, and
when Vista is released, it will be here.
2.XAML is a new XML-based declarative programming language with the
potential to create UI without the need for code, and the potential of
drawing 2D shapes without code, which was the OP's request. <snip from the
URL you posted...
XAML enables you to create a UI without using code. You can create quite
elaborate documents or pages entirely in markup using controls, text,
images, shapes and so forth.
Again, you're talking about UI only. If you limit yourself to a discussion
of what to use to draw UI, you eliminate both DirectX and OpenGL from the
conversation, regardless of whether you're discussing the current or next
version of Windows. And again, I was answering the question which is the
title of this thread "directx or opengl." I was specifically addressing this
question, not the question of whether either of the 2 technologies was the
best choice for doing simple graphics. This is exactly what I said: "For the
purpose of planning ahead, I would use DirectX, *if it was a choice between
the 2*." Obviously, neither is necessary for simple graphics. And UI-level
classes will suffice for that purpose.
3.
| You don't write graphics programming code with it. See ..
http://windowssdk.msdn.microsoft.com...asp?frame=true.

This page refers to the "unmanaged DirectX" interfaces available on Vista.
This is the API used by applications written in 'native' C++ code, are
Vista
only API's and must run on hardware that implements the Windows Vista WDDM
(new driver model for hardware accelerated Graphical devices).
*I* do 3D graphics programming with Managed Direct3D. And I have every
expectation that it will be available on Windows Vista, regardless of the
fact that it hasn't been pre-released for it yet. Updates for managed
DirectX come out every couple of months. And it's not going away.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... 1. You aren't supposed to program against DirectX on Vista (at least not
in
managed code, which is what this NG is about, right?), you are gonna use
WinFX and the WPF framework classes which are a managed layer on top of
DirectX on XP or on top of a new graphics engine WGF, costing of
Direct3D10
and the new hardware accelerated Graphics drivers on Vista.
Watch this...
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp

2.XAML is a new XML-based declarative programming language with the
potential to create UI without the need for code, and the potential of
drawing 2D shapes without code, which was the OP's request. <snip from the
URL you posted...
XAML enables you to create a UI without using code. You can create quite
elaborate documents or pages entirely in markup using controls, text,
images, shapes and so forth.
/snip>

3.
| You don't write graphics programming code with it. See ..
http://windowssdk.msdn.microsoft.com...asp?frame=true.

This page refers to the "unmanaged DirectX" interfaces available on Vista.
This is the API used by applications written in 'native' C++ code, are
Vista
only API's and must run on hardware that implements the Windows Vista WDDM
(new driver model for hardware accelerated Graphical devices).

and ....
| And WMP is an acronym for "Windows Media Player," which has nothing to
do
| this topic.

was a typo, sorry.

Willy.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
|> You are gonna use the WMP classes and/or XAML for this do you, DirectX
is
| > not the API to use from WPF.
|
| First of all, XAML is a presentation language. See
|
http://windowssdk.msdn.microsoft.com...40017c22e4.asp
|
| You don't write graphics programming code with it. See
|
http://windowssdk.msdn.microsoft.com...asp?frame=true.
|
| Direct3D is the graphics "layer" for Windows Vista. See
| http://msdn.microsoft.com/windowsvista/experience/
|
| To quote:
|
| "A new graphics driver model has been introduced with Windows Vista that
is
| stable and secure; it has built-in fault tolerance to enable constant
use
of
| the graphics processor unit (GPU) for the rich graphics sported by the
| operating system and the applications. The GPU memory manager and
scheduler
| in this driver model enable multiple graphics applications to use the
GPU
to
| run simultaneously.
| Windows Graphics Foundation 2.0 (WGF), also known as Direct3D10, sits on
top
| of, but is distinct from, the new driver model. Applications can use
this
| application programming interface (API) for compelling next-generation
| cinematographic visuals as well as taking advantage of the massive
| computational horsepower available on the GPU for more general purpose
| applications that are easily parallelized (termed GPGPU). An example of
such
| use is image processing."
|
|
| And WMP is an acronym for "Windows Media Player," which has nothing to
do
| this topic.
|
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
|
| "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
| news:%2****************@TK2MSFTNGP12.phx.gbl...
| > You are gonna use the WMP classes and/or XAML for this do you, DirectX
is
| > not the API to use from WPF.
| >
| > Willy.
| >
| >
| >
| > "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
| > news:eQ**************@TK2MSFTNGP09.phx.gbl...
| > | For the purpose of planning ahead, I would use DirectX, if it was a
| > choice
| > | between the 2. DirectX is going to be part of the foundation of
Windows
| > | Presentation Services in Windows Vista.
| > |
| > | --
| > | HTH,
| > |
| > | Kevin Spencer
| > | Microsoft MVP
| > | .Net Developer
| > | We got a sick zebra a hat,
| > | you ultimate tuna.
| > |
| > |
| > | "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in
message
| > | news:ec*************@TK2MSFTNGP15.phx.gbl...
| > | >
| > | > "Jessica Weiner" <je*****@gmail.com> wrote in message
| > | > news:VC*******************@newssvr29.news.prodigy. net...
| > | > |I am writing an application in C# which need to plot graphs and
| > simple
| > | > | shapes (polygons, circles, squares etc). Which library is better
for
| > | > this
| > | > | purpose and why? Thanks.
| > | > |
| > | > |
| > | >
| > | > System.Drawing and System.Drawing.Drawing2D do contain the classes
| > that
| > | > wrap
| > | > GDI++ and are in general all you need to draw simple shapes.
| > | >
| > | >
| > | > Willy.
| > | >
| > | >
| > |
| > |
| >
| >
|
|

Feb 13 '06 #9
See inline

Willy.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eG****************@TK2MSFTNGP15.phx.gbl...
| Hi Willy,
|
| > 1. You aren't supposed to program against DirectX on Vista (at least not
| > in
| > managed code, which is what this NG is about, right?), you are gonna use
| > WinFX and the WPF framework classes which are a managed layer on top of
| > DirectX on XP or on top of a new graphics engine WGF, costing of
| > Direct3D10
| > and the new hardware accelerated Graphics drivers on Vista.
| > Watch this...
| >
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp
|
| First of all, the documentation you referred to was about a very limited
set
| of UI graphics, not all graphics, which includes 3D drawing. That
particular
| reference was to UI Controls only. In other words, there is a very limited
| set of (UI only) drawing you can do with this particular set of tools,
which
| is UI-specific. To give you an example from the current platform, you can
| create a form and you can override the Paint event to draw in 2 Dimensions
| on a Control. However, you cannot draw a 3D game interface on a Control
| using GDI+ or System.Drawing.Graphics. For that, you have to use DirectX.
|

Sorry, but you should read the OP's question first.

<snip
I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.
/snip>

See, the question is about simple shapes, you don't need DirectX for this
point.
Then you suggested to use DirectX because it would be part of WPF on Vista,
And I say you don't need to go down that level to draw simple or even
complex shapes on Vista, just use the WPF classes they wrap 2D/3D complex
drawing using the WPF engine (called the Desktop Window Manager (DWM), which
uses only uses DirectX for rendering).
| These UI classes run on top of DirectX.

No, they are drawing classes in the System.Windows.Media and the
System.Windows.Media.Media3D namespaces, they run on top of DWM, they are
extremely powerfull/functional.
Please don't confuse WPF drawing/rendering with DirectX, both serve
different purposes, they run in different airspaces (just like native
Win32/GDI), both share the same DirectX rendering engine and the VDDM (Vista
Display Driver Model), while Win32/GDI uses the GDI rendering engine like on
all other Windows platforms.

They are not DirectX, but you can
| certainly draw using DirectX "directly." And, if you recall from my
original
| reply, I recommended DirectX *over OpenGL*, since in Vista, OpenGL is
likely
| to sit on top of DirectX as well, and therefore, not perform quite as
well.
| That I can't be sure of, but that is how I'd bet.
|
| As for DirectX being managed, I've been working with Managed Direct3D for
| almost 2 years now. No, the most current release of the DirectX SDK does
not
| contain a Managed DirectX library for Windows Vista. But it's coming, and
| when Vista is released, it will be here.
|

It does, it's called DirectX3D10! But you need Vista class driver and
hardware accelerated GPU's (actually, some limitted support ) to use them.
And I use them since a couple of months since I'm on the beta team for
Vista.
| > 2.XAML is a new XML-based declarative programming language with the
| > potential to create UI without the need for code, and the potential of
| > drawing 2D shapes without code, which was the OP's request. <snip from
the
| > URL you posted...
| > XAML enables you to create a UI without using code. You can create quite
| > elaborate documents or pages entirely in markup using controls, text,
| > images, shapes and so forth.
|
| Again, you're talking about UI only. If you limit yourself to a discussion
| of what to use to draw UI, you eliminate both DirectX and OpenGL from the
| conversation, regardless of whether you're discussing the current or next
| version of Windows.
No, I don't eliminate DirectX from the discussion, I just said you don't
need it to draw simple/shapes shapes and graphs on the current platform, and
certainly not on Vista, I don't want to push the OP towards something he/she
doesn't need.
And again, I was answering the question which is the
| title of this thread "directx or opengl." I was specifically addressing
this
| question, not the question of whether either of the 2 technologies was the
| best choice for doing simple graphics. This is exactly what I said: "For
the
| purpose of planning ahead, I would use DirectX, *if it was a choice
between
| the 2*." Obviously, neither is necessary for simple graphics. And UI-level
| classes will suffice for that purpose.
|
| > 3.
| > | You don't write graphics programming code with it. See ..
| >
http://windowssdk.msdn.microsoft.com...asp?frame=true.
| >
| > This page refers to the "unmanaged DirectX" interfaces available on
Vista.
| > This is the API used by applications written in 'native' C++ code, are
| > Vista
| > only API's and must run on hardware that implements the Windows Vista
WDDM
| > (new driver model for hardware accelerated Graphical devices).
|
| *I* do 3D graphics programming with Managed Direct3D. And I have every
| expectation that it will be available on Windows Vista, regardless of the
| fact that it hasn't been pre-released for it yet. Updates for managed
| DirectX come out every couple of months. And it's not going away.
|

See above native Direct3D10 is in the latest SDK (beta), but no (publicly
available) managed framework exists for it (yet).
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| We got a sick zebra a hat,
| you ultimate tuna.
|
|
| "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
| news:%2****************@TK2MSFTNGP11.phx.gbl...
| > 1. You aren't supposed to program against DirectX on Vista (at least not
| > in
| > managed code, which is what this NG is about, right?), you are gonna use
| > WinFX and the WPF framework classes which are a managed layer on top of
| > DirectX on XP or on top of a new graphics engine WGF, costing of
| > Direct3D10
| > and the new hardware accelerated Graphics drivers on Vista.
| > Watch this...
| >
http://windowssdk.msdn.microsoft.com...1b26f7d901.asp
| >
| > 2.XAML is a new XML-based declarative programming language with the
| > potential to create UI without the need for code, and the potential of
| > drawing 2D shapes without code, which was the OP's request. <snip from
the
| > URL you posted...
| > XAML enables you to create a UI without using code. You can create quite
| > elaborate documents or pages entirely in markup using controls, text,
| > images, shapes and so forth.
| > /snip>
| >
| > 3.
| > | You don't write graphics programming code with it. See ..
| >
http://windowssdk.msdn.microsoft.com...asp?frame=true.
| >
| > This page refers to the "unmanaged DirectX" interfaces available on
Vista.
| > This is the API used by applications written in 'native' C++ code, are
| > Vista
| > only API's and must run on hardware that implements the Windows Vista
WDDM
| > (new driver model for hardware accelerated Graphical devices).
| >
| > and ....
| > | And WMP is an acronym for "Windows Media Player," which has nothing to
| > do
| > | this topic.
| >
| > was a typo, sorry.
| >
| > Willy.
| >
| >
| >
| > "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
| > news:%2****************@TK2MSFTNGP15.phx.gbl...
| > |> You are gonna use the WMP classes and/or XAML for this do you,
DirectX
| > is
| > | > not the API to use from WPF.
| > |
| > | First of all, XAML is a presentation language. See
| > |
| >
http://windowssdk.msdn.microsoft.com...40017c22e4.asp
| > |
| > | You don't write graphics programming code with it. See
| > |
| >
http://windowssdk.msdn.microsoft.com...asp?frame=true.
| > |
| > | Direct3D is the graphics "layer" for Windows Vista. See
| > | http://msdn.microsoft.com/windowsvista/experience/
| > |
| > | To quote:
| > |
| > | "A new graphics driver model has been introduced with Windows Vista
that
| > is
| > | stable and secure; it has built-in fault tolerance to enable constant
| > use
| > of
| > | the graphics processor unit (GPU) for the rich graphics sported by the
| > | operating system and the applications. The GPU memory manager and
| > scheduler
| > | in this driver model enable multiple graphics applications to use the
| > GPU
| > to
| > | run simultaneously.
| > | Windows Graphics Foundation 2.0 (WGF), also known as Direct3D10, sits
on
| > top
| > | of, but is distinct from, the new driver model. Applications can use
| > this
| > | application programming interface (API) for compelling next-generation
| > | cinematographic visuals as well as taking advantage of the massive
| > | computational horsepower available on the GPU for more general purpose
| > | applications that are easily parallelized (termed GPGPU). An example
of
| > such
| > | use is image processing."
| > |
| > |
| > | And WMP is an acronym for "Windows Media Player," which has nothing to
| > do
| > | this topic.
| > |
| > | --
| > | HTH,
| > |
| > | Kevin Spencer
| > | Microsoft MVP
| > | .Net Developer
| > | We got a sick zebra a hat,
| > | you ultimate tuna.
| > |
| > |
| > |
| > | "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
| > | news:%2****************@TK2MSFTNGP12.phx.gbl...
| > | > You are gonna use the WMP classes and/or XAML for this do you,
DirectX
| > is
| > | > not the API to use from WPF.
| > | >
| > | > Willy.
| > | >
| > | >
| > | >
| > | > "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
| > | > news:eQ**************@TK2MSFTNGP09.phx.gbl...
| > | > | For the purpose of planning ahead, I would use DirectX, if it was
a
| > | > choice
| > | > | between the 2. DirectX is going to be part of the foundation of
| > Windows
| > | > | Presentation Services in Windows Vista.
| > | > |
| > | > | --
| > | > | HTH,
| > | > |
| > | > | Kevin Spencer
| > | > | Microsoft MVP
| > | > | .Net Developer
| > | > | We got a sick zebra a hat,
| > | > | you ultimate tuna.
| > | > |
| > | > |
| > | > | "Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in
| > message
| > | > | news:ec*************@TK2MSFTNGP15.phx.gbl...
| > | > | >
| > | > | > "Jessica Weiner" <je*****@gmail.com> wrote in message
| > | > | > news:VC*******************@newssvr29.news.prodigy. net...
| > | > | > |I am writing an application in C# which need to plot graphs and
| > | > simple
| > | > | > | shapes (polygons, circles, squares etc). Which library is
better
| > for
| > | > | > this
| > | > | > | purpose and why? Thanks.
| > | > | > |
| > | > | > |
| > | > | >
| > | > | > System.Drawing and System.Drawing.Drawing2D do contain the
classes
| > | > that
| > | > | > wrap
| > | > | > GDI++ and are in general all you need to draw simple shapes.
| > | > | >
| > | > | >
| > | > | > Willy.
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
Feb 13 '06 #10
> Sorry, but you should read the OP's question first.

This is tiresome. What I *should* do is my business. What I *did* do is what
I did. I provided some information that was not a direct answer to the
question. So sue me.

Now be off wi' ye.

--

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.


Feb 13 '06 #11

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
| > Sorry, but you should read the OP's question first.
|
| This is tiresome. What I *should* do is my business. What I *did* do is
what
| I did. I provided some information that was not a direct answer to the
| question. So sue me.
|

What you did was suggest something based on a wrong assumption, I don't care
what you *do*, I don't care wheter you use DirectX to draw simple shapes,
all I *did* was trying to explain where you got it wrong. Butn I see, I just
wasted some time, no problem it won't happen again.

Willy.
Feb 13 '06 #12
Listen kid, I didn't get anything wrong. You had answered the fellow's
question just fine. I was providing other information which I thought might
be of interest to the general community. But apparently, you are one of
those people who feel they have to prove themselves to the world by arguing.

I don't use DirectX to draw simple shapes. I use it to model Geographic
information in 3 dimensions, based on GPS data in a small aircraft, combined
with USGS Geographic terrain and land cover data, FAA General aviation
airport data, weather data, travel information data, and aircraft instrument
data, in real time. It's an app that uses Indigo services (now known as
Windows Communication Foundation), was developed for the NASA SATS program,
and was demoed in Danville VA last March (about a year ago).I didn't write
the Indigo services, but I wrote every last scrap of the rest of it, all by
my lonesome. Bill Gates liked it when he saw it at the Microsoft Science
fair in October of 2004.

But what the heck, I'm just an ignoramus who doesn't know what tools to use
for what sort of purpose. On top of that, I thought that the OP ought to use
Direct 3D to draw simple shapes, rather than the System.Drawing and
System.Imaging namespaces, and was trying to "push him into it." Oh yes, I
forgot to add that I've also written an imaging library that uses those
namespaces to perform filtering on various types of images, create images on
the fly using text and/or image files as sources, convert them to various
formats, read and parse TIFF files and read and parse GeoTiff files, as well
as convert to and from various Geographic projections to 3-dimensional
cartesian coordinates. Darn if I didn't forget to follow my own advice and
use DirectX for that! What was I thinking?!

It's true, I haven't been beta testing this stuff for the past couple of
months. I went to Redmond to a preview of Indigo in October of 2004. I had
beta 1 of Windows Vista (known as Longhorn back then) on a virtual machine
over a year ago, along with beta 1 (and every beta since) of Visual
Studio.Net 2005 too. But I'll be the first to admit, I don't know what the
heck I'm doing with it, or what the heck I'm talking about!

It isn't possible that you could have misunderstood what I was saying. No,
you certainly did explain to me where I "got it wrong." I'm so ashamed.
Please, don't chastise me any more. I'll just listen and learn.

--
Yours in disgrace,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:u8**************@TK2MSFTNGP10.phx.gbl...

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
| > Sorry, but you should read the OP's question first.
|
| This is tiresome. What I *should* do is my business. What I *did* do is
what
| I did. I provided some information that was not a direct answer to the
| question. So sue me.
|

What you did was suggest something based on a wrong assumption, I don't
care
what you *do*, I don't care wheter you use DirectX to draw simple shapes,
all I *did* was trying to explain where you got it wrong. Butn I see, I
just
wasted some time, no problem it won't happen again.

Willy.

Feb 14 '06 #13
Bravo, gentlemen! Still not sure who actually won this p*ssing
contest, but it sure made for some interesting morning reading.

Sorry, I couldn't resist :P Cheers to you both.

Feb 14 '06 #14
Personally, I'd settle for some mutual respect.

--

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"dotnetchic" <do********@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Bravo, gentlemen! Still not sure who actually won this p*ssing
contest, but it sure made for some interesting morning reading.

Sorry, I couldn't resist :P Cheers to you both.

Feb 14 '06 #15

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

Similar topics

9
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different...
1
by: Aaron Lovi | last post by:
Hi, I'm a noob trying to use managed DirectX (VC# 2003, DX9.0 Apr 2005 SDK). I used to use OpenGL with QT and VC++6.0, but I was a relative newcomer to that as well. When I used OpenGL, my...
15
by: oracle411 | last post by:
Hi I'm new to OpenGL, but have an OpenGL application written in CPP that I would like to display on a web browser. Was wondering how this could be done? Thank you very much
0
by: Harvey Cohen | last post by:
Hello all, I have some C# code that implements calls to DirectX.DirectSound. It compiles under both VS .NET 2003 and VS 2005 and runs under VS .NET 2003 and VS 2005 on a Compaq laptop (Windows...
0
by: n_g | last post by:
how do i popup a message when user is running other fullscreen application? eg: i want to display phone number in corner of screen even user is playing fullscreen directx/opengl game or watching...
3
by: jg.campbell.ng | last post by:
I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from...
2
by: smalltownworld | last post by:
Anyone got an idea of capturing a screen without api and or opengl/directx? Was thinking about reading from primary display driver memory but not sure if it can be parsed into an image . . . Any...
9
by: Achim Domma | last post by:
Hi, I'm developing a GUI app in Python/C++ to visualize numerical results. Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there are no windows binaries for Python 2.5 for quite...
11
by: raylopez99 | last post by:
I just downloaded the apparently free SDK for DirectX 9, all 200+ MB of it, but as I read about WPF I wonder: is DirectX obsolete? Should I even bother learning how to use it? After all, the end...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.