Questions tagged [geometrydrawing]
16 questions
8
votes
1 answer
What are the letters in a XAML Geometry attribute called?
I am defining a XAML DrawingBrush resource and I want to draw a custom shape. I found the following GeometryDrawing example:
What do the M, L, and z letters in the Geometry…

sourcenouveau
- 29,356
- 35
- 146
- 243
4
votes
3 answers
How to save Geometry as image?
How to save Geometry as image?
For example i have List.
I want it to be as follows:
for (int i = 0; i < GeometryList.Count; i++)
{
Pen TestPen = new Pen(Brushes.Black, 1);
GeometryDrawing TestDrawing = new…

M8R-wp4emq
- 53
- 1
- 5
3
votes
1 answer
Animate DrawingImage GeometryDrawing Wpf Xaml
I have a UserControl and want to animate one of the GeometryDrawing object.
In my case there is a 'circle1' which I want to rotate endless.
Can someone help me (Storyboard? where should I place xaml code?) ? Thx.
…

user1562809
- 107
- 9
3
votes
4 answers
Using multiple brushes within a single GeometryDrawing in WPF
Is it possible to use multiple brushes within a single GeometryDrawing? I have several geometries that I want to draw with different brushes, and it's rather verbose to have to declare an individual GeometryDrawing for each. I'm looking for a more…

sourcenouveau
- 29,356
- 35
- 146
- 243
2
votes
1 answer
Defining style for GeometryDrawing
Please do not mark it as duplicate. The linked question is simply different from what I'm asking.
I need to set Pen and Brush properties for around 180+ GeometryDrawing objects. My first thought was to use a Style for it, but I learned that Style…

dotNET
- 33,414
- 24
- 162
- 251
2
votes
1 answer
Geogebra resizing shapes without copying
How do I resize a shape without making a copy and using dilate from point?
How my shape with vectors looks like
How do I limit the axes range for exporting?
How do I define a size, say 3 cm for cropping a portion of the graphics view for…

riddler
- 467
- 3
- 13
1
vote
1 answer
1
vote
1 answer
WPF. GeometryDrawing's Brush is always only Transparent
Here is a test app that just shows a hatched ellipse in a window. No matter how I write it, the background of the ellipse is transparent; not the color I'm setting the GeometryDrawing. I'm stumped. The resulting picture shows the background of the…

IWishUWell
- 23
- 4
1
vote
0 answers
How to create a circle divided into equal parts in WPF and write text in each part using GeometryDrawing
I have a dynamic list of strings with length "n" and need to draw a circle divided into "n" number of equal parts and distribute the name in parts.
I found this Xaml piece of code that generates 3 parts but I can't figure how to do it…

Ayman
- 31
- 5
1
vote
2 answers
0
votes
1 answer
Display an Image with an overlaid polygon
This seems simple, but it's not working for me. I'd like to display an image from my DB, and overlay a polygon from the same DB, using the same coordinate system.
…

Jarvis
- 681
- 8
- 33
0
votes
0 answers
Changing DrawingImage brush binded to DynamicResource
I have a DrawingImage object as a resource which uses brush color from DynamicResource like this:

Roni Tovi
- 828
- 10
- 21
0
votes
1 answer
How to use the GeometryDrawing?
I want to draw the letters A~Z by GeometryDrawing.

shenhengbin
- 4,236
- 1
- 24
- 33
0
votes
1 answer
Using a DrawingImage as Icon for Multiple MenuItems
I have some icon resources as DrawingImages that is made up of many GeometryDrawings. I have File MenuItems and ToolBar buttons that use these images via resource bindings to MenuItem.Icon. Unfortunately, only one of the MenuItems show the icon. …

Ryan Cromwell
- 2,613
- 1
- 17
- 33
0
votes
1 answer
How to change the border color of a GeometryDrawing in wpf
I have some WPF code binding a block to a color as follows:

daniely
- 7,313
- 5
- 29
- 46