shapes

How do I draw lines using XNA?

I've read a bunch of tutorials involving XNA (and it's various versions) and I still am a little confused on drawing primitives. Everything seems to be really convoluted. Can someone show me, using code, the simplest XNA implementation of drawing one or two lines on to the screen? Perhaps with a brief explanation (including the boiler...

Where can I find visio shapes for software development?

Anyone have any ideas on where to get a really nice collection of visio shapes, e.g for the following purposes: network diagrams shapes to show solution deployments any other fancy looking diagrams for software development? ...

SharePoint Documentation Images

Not exactly programming per se, but I am looking for some good images for diagraming SharePoint solutions for documentation. The Microsoft white-papers always have good diagrams and I am looking for something that I could use. Either visio shapes or jpeg/gif images would be ideal. Update: See Below http://f5todebug.blogspot.com/2009...

Handling selection of shapes on a board (algo)

I have a board as a canvas with several shapes drawn on it, some of them are triangles, circles, rectangles but all are contained inside their own bound delimited rectangle. "The circle will be inside a rectangle" I put two circles A, B on the board where A is over B and has some area colliding. If I click on A area corresponding to th...

How do I include System.Windows.Shapes?

Hi, I am using Visual Studio 2008 with the .NET Framework (v3.5). I cannot seem to use System.Windows.Shapes, or anything System.Windows.* besides Forms. Here is the link to the class description: System.Windows.Shapes (MSDN Library) Is there some special thing I need to do to use it? I checked in all of the framework folders, an...

Create custom shape or connector in PowerPoint using code/script/definition

The shapes in in PowerPoint 2007 seem to be built in - is there a way to create 'user'/'custom' shapes? I wanted to create a custom connector, but knowing if you can create a custom shape, could be handy in the future. ...

How do I draw an annulus (doughnut) using GDI+?

I have been trying to draw an annulus (ring with thickness) with a transparent hole and a gradient rim in C# with very little success. Does anyone have any suggestions on how to do this? here's a nice Blend Utility Here's the Final result - thanks to BlueMonkMN Rectangle GetSquareRec(double radius, int x, int y) { double ...

Word Macro - Insert picture as oShape?

Hi, I'm trying to write a macro where I press a button and a dialog window appear which lets me choose an image I want to insert to the document. I've managed to do this by this simple code: Private Sub btnInsertPicture_Click() Dialogs(wdDialogInsertPicture).Show For Each ishape In ActiveDocument.InlineShapes With ishape ...

Lucent Visio Shapes

Does anyone know where I can find Visio shapes for Lucent equipment? Specifically, AC120 and CBX500's. I also trying to avoid having to pay a subscription fee. ...

Shape descriptor

Hi, I have an image which is a binary mask, I want to characterize the contours of the black zones in the mask, I have found several funtionalities to detect the borders between both zones but only as a new image but what I want is the description of this border, not a new image. Is there any functionality in java advance imaging or in ...

simple geometric shape recognition in C#

Hi I have a set of Strokes (from ink) and would like to find those strokes that participate in a geometric shape like line,square, circle, triangle... and identify them. Until now i have seen many algorithms that work on bitmaps. My problem is easier since i have already the good array of point. But still need to find the closest geo...

box2d edgeshape collision groups ignored

I added collision groups to my game and they are working fine except with concave shapes (Edge Shapes). It seems that they ignore them completely. When I don't use a contact filter and collision groups the collision works. ...

WPF - UIElement.RenderSize not working for Line shape

I'm trying to make some drawing application and I get strange results in my "selection mode". If I draw a rectangle and "select it" RenderSize returns proper Size for it, but if Line is selected RenderSize returns Size which has Width set as Line.X2, and Height set as Line.Y2. For example: Line begins at X1 = 50, Y1 = 50, ends at X2 = 13...

Building an "inner stroke" effect from a Polygon.

I'm drawing a whole bunch of Polygons onto a canvas, most of which share an edge with at least one other Polygon. I'd like to indicate a Polygon is "special" by outlining it, however due to the overlapping edges the Stroke on a Polygon tends to be partially drawn over by another Polygon causing the Stroke to look thinner than it should ...

WPF Rectangle does not have a Click event

It seems that the WPF Rectangle shape does not have the Click event defined. What am I supposed to use instead? It does have MouseUp, but it's not quite the same behavior. ...

How to define XAML shapes in a ResourceDictionary and use them

What is the general approach for creating reusable XAML shapes in a ResourceDictionary? If I define a Path or other shape in the ResourceDictionary, how do I go about using it? I would like to have a clickable diagram in my application, made up of several shapes. I imagine that I would use Buttons in the diagram, but I would like them t...

Serializing Shape objects in WPF

Hi, Does anyone know a good way to serialize a System.Windows.Shape (incl. Polygon, Circle, Triangle etc.) object so that it may be saved in a database? I have tried to serialize it using BinaryFormatter but it throws an exception saying that it is not marked as serializable. Thanks in advance for any help. Cheers, Nilu ...

Using Raphael JS to float shapes around the screen

I am working on having some shapes floating around the screen at random. Eventually they will interact with each other, as well as have onclick functions. I can get the circles to render on screen, but I cannot get them to have motion. It seems that the .animate() function is not what I need here. Does anyone know how I would go abou...

Check for overlapping shapes in WPF

Hi, I have a set of shapes which need to be drawn on top of each other. I need to re-order them such that the smallest shape gets drawn last (i.e. it will be closest to the user). Is there any way to check whether a shape overlappes (encloses and/or intersects) another shape. I know there is a method in Rect structure called Contains wh...

How can I manipulate shapes in Adobe Flex?

I'm working on an application where I'm drawing some rectangles on the screen, and then will need to manipulate the shapes (change their size, location). I tried to do something with .drawRect and clearing the shape each time I was manipulating it, but the RAM usage was spiking and then falling (presumeably because i keep reinitializing...