|
Hi,
in .NET using GDI+ it would be the other way around: you can get the Graphics for an
Image (such as a Bitmap) by calling the Graphics.FromImage method, so the way to do it would be:
- create an Image (Bitmap) of sufficient size
- get its Graphics
- use its Graphics to create/modify the image content
- now use the image in any way you see fit (either Paint it on screen, print it, or save it).
|
|
|
|
|
I downloaded the DirectX 9.0c SDK (C#) from the Microsoft site and then installed it.
After that I wanted to compile a sample C# source and discovered that the References to DirectX were not available!
How do I get the DirectX assemblies on my PC so that I can use DirectX namespace(s)?
Do I need to download and install some more software for this? What do I need and where do I get it from?
Please some advice.
Thank you, Ranger.
|
|
|
|
|
It turned out I had only installed the DirectX SDK and not the runtime library.
It seems that new books about DirectX (like version 10) no longer use the C# programming language but use the C++ language instead.
From what I have read about DirectX I figure it is much more complicated than OpenGL, so I will stick to the latter...
Ranger.
|
|
|
|
|
Haha, sorry, I couldn't resist. I could use some guides to common graphics techniques, e.g. selecting by colour, making a flat round button look '3d' by gradienting its edges, etc. I've been given some example images that are plain line drawings, and I need to add some pizzaz, enough to avoid breaking budget by hiring a designer. I'll be using either the Gimp or Paint.NET, and Expression Web and Blend.
moved on Friday, July 18, 2008 7:44 AM
|
|
|
|
|
|
Not quite what I had in mind, but amazingly cool. Thanks!
I was thinking more along the lines of using images as buttons, probably implemented as ImageButton controls, but I'm sure if I get halfway with the image, and place it on a cool, glassy button, I'll have a winner.
|
|
|
|
|
Graham's site suggestion looks cool. I'd use that.
When I had to draw some nice looking buttons a while back (I used WPF to generate them - I find typing easier than drawing ), I based what I did from several of these tutorials[^]. they give you an idea what kind of shapes and gradients you need to build up a good 3d squishy/glassy look with highlights and stuff, and you just improvise a bit from there.
Simon
|
|
|
|
|
I do remember a site that analyzes how Vista Aero stuff is drawn on a pixed/shade/line level. Can#t find it anymore, though.
at least I found this[^]
Also, the Windows User Interface guidelines have at least some material about it.
The linked site seems to have way more of it[^]
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist
|
|
|
|
|
Try meby this : www.pixel2life.com
What I normally do when i need to make my app "pimp" - is to screenshot few fancy sites or apps and crate a unique look and feel in paint... then reduce the size of the bitmaps in Gimp
|
|
|
|
|
Hi
I am working on project related to optimal travelling solution.
i have to draw map of world on computer screen using latitude and longitude.
Can someone help me regarding this problem?????
Thanx
|
|
|
|
|
aadilali wrote: I am working on project related to optimal travelling solution.
http://en.wikipedia.org/wiki/Great-circle_distance[^]
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."
|
|
|
|
|
what do you mean by this?????
|
|
|
|
|
the shortest distance between two points on a map representing the globe (latitude and longitude) is through great circle distances. If you are plotting any kind of traveling solution, the optimal path is via the great-circle calculation.
|
|
|
|
|
Hi!
I am a new in DirectX ver. 9.0.
How can I draw a 3d circle? Please help me
|
|
|
|
|
First, learn to draw a 2D point...
(a circle is a 2-dimensional shape, by definition it exists on a single plane. Are you asking for a sphere?)
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Exactly I want to draw a wheel whose inner portion has nothing.
|
|
|
|
|
|
If you want to rotate or tilt the wheel (or alter the view perspective) you probably want to create a mesh and texture it. This is tedious stuff to code, and many programmers use an Auto-CAD program to create the mesh file. A wheel wouldn't be that difficult to code, but programatically applying the texture so that it looks professional is not a trivial task.
If, however, the wheel isn't going to move (tilt or rotate), creating a static image and just displaying it as a texture would be alot easier.
To give you an idea of how to create a mesh, see this Tutorial on Creating a Mesh (Managed DirectX)[^]
|
|
|
|
|
|
This article[^] demonstrates how to iterate through EMF records. You'd do well to start there.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
|
jasrdjan wrote: I failed to mantion that I am working in C#.
So?
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
real C# programmers loose their ability to read other languages in no time.
|
|
|
|
|
Heh, their propensity to down-vote helpful replies goes into overdrive though.
If it wasn't graphics, GDI and GDI+, i wouldn't have bothered... but that stuff is so similar between C++ and C# it's hardly worth worrying about.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Shog9 wrote: their propensity to down-vote helpful replies goes into overdrive
I blame the current voting scheme, where some message categories only accept "helpful" and "not helpful",
as opposed to 1,2,3,4,5; this not only flushes the possibility for nuance, but causes a lot of
"not helpful" clicks since a lot of replies are either not understood or, well, not all that helpful.
Strictly speaking, if there are N good replies, all equivalent, then the first one is helpful, and all
the others are not helpful, although similar if not identical to the helpful one
And that is why I carry my current sig.
|
|
|
|