shapes

What is the Data value of plus sign in Path

How to draw plus and minus signs in using data property in Path object. This is my triangle path object.i need to change it to plus symbol. <Path x:Name="trianglePath" Data="M 0 8 H 12 V 15 Z"/> Please help me out with some examples. Thanks In Advacne Regards KSR ...

Offset shape within a ShapeDrawable

I'm trying to draw a rounded rectangle with a border around it using a class that extends ShapeDrawable (see here) and everything is working except that the shapedrawable seems to be cutting off some of the border because the shape itself doesn't extend outside those bounds. Is there not some way to offset where the shapedrawable start...

WPF rhombus shape custom control

Hi I have my custom control which looks like that <UserControl BorderBrush="#A9C2DE" HorizontalAlignment="Left" x:Class="Block" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="86" Width="151" ToolTip="{DynamicResource BasicTooltip}"> <UserControl.Reso...

How to import Photoshop Shapes in Flash

I'm looking for a method to import Photoshop shapes intro flash. I want to import them as vectors not bitmaps. Is it possible? ...

CSS Dropdown Menu: Circles into Ovals

I'm trying to make a dropdown menu which starts with a line of circles for the top-level items. Some lead to another page, but others have sub-items which are presented inside an oval, i.e. the circle transforms into an oval with the subitems inside on mouseover. All of the items change color when moused over. I have scads of exam...

How to get Shape's internal name in Excel

When a picture is inserted into an Excel worksheet using Shapes.AddPicture(...) method, Excel gives it a name "Picture 1", "Picture 2" etc automatically. This name can be used to get a reference to this shape object in Shapes collection like Shapes.Item("Picture 1"). If the name is changed in Excel using the Name Box, there are two diff...

Drawing on Video within C#

Hi, I am making an application that will allow users to apply certain tools to analyse videos & images. I need help with how i actaully draw/write on the video loaded into windows media player within my form and being able to save it on. It needs to be able to lert the user draw freehand and shapes on it. Thanks in Advance, Chris :) ...

How can I change the edge line color when using the 'fill' function in MATLAB?

I'm writing code in which I use MATLAB's fill command to plot 2D shapes. I can specify the fill color of the shape. However, the border line color is always black. I want the border line color the same as the fill color. How can I also specify the border line color? ...

Design in Android, Shapes

I wounder how its possible to make a shape like the example, with round corners and padding from the screen borders, and also put text inside, how is this possible? ...

Scaling/Translating a Shape to a given Rectangle using AffineTransform

Hi all, I'm trying to scale/translate a java.awt.Shape with AffineTransform in order to draw it in a defined bounding Rectangle. Moreover, I want to paint it in a drawing Area having a 'zoom' parameter. I tried various concatenations of AffineTransform but I couldn't find the correct sequence. For example, the following solution was w...

wpf how to fit textbox in rhombus shape control

Hi I have a userControl which pretend to be a rhombus shape control. On this control I have a textbox and label. Entire control looks like that <UserControl HorizontalAlignment="Left" x:Class="WPFDiagramDesignerControl.Components.UcWBSBlock" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.micro...

Changing the openGL coordinate system.

Right now, my openGL window scales from -1 to 1 on both the X and Y axis. How would I change this, to say, -2 and 2? ...

Finding the shape created by two other intersecting shapes

I have two overlapping shapes in my C# app, defined by Point arrays. I need to find the points that define the shape where these two overlap. In this image, I know the red and green points, but I need the yellow points. Here is some dummy code that might help: Point[] GetIntersection(Point[] red, Point[] green) { Point[] yellow =...

Multi-Shaped CSS Layers \ Non-rectangular CSS Layer

is it possible to make CSS Layers shaped like the following image... i know we can have images of this shape and with transparent backgrounds we can have Layers shaped like these... but no i want CSS Layers to actual borders like these shapes... is there a way CSS, jQuery or anything.... Note: by 'shapes like these i mean not just t...

line and opacity

I would like to draw an opaque line on a control in c#. I tried this with visual basic powerpacks shapecontrol.. but I couldn't find any properties that set opacity. How do I draw an opaque line ? Thanks, ...

Finding the endpoint of a vertex given startpoint of vertex and midpoint of shape

Given that: The shape is a regular polygon in 3D space The start point (the end of one arbitrary vertex of the shape) is known the point in the middle of the shape (not on an edge - equidistant from all corners) is known the angle at each corner (((numEdges-2)*PI)/numEdges), the radius of the shape (distance from a corner to the midp...

Drawing multiple shapes with ShapeDrawable in xml with Android

Hi, I am currently drawing a number of circles on a canvas in a custom view in code. the circles are static and do not change. I would like to draw them using a ShapeDrawable in xml to help clean up my code. I will have a number of different drawables which the user can select and therefore I don't want to do this in code. having 3 or 4...