shape

Finding Cell Range With Excel Macros

I have an many embedded objects (shapes) in a worksheet and the icons is displayed inside a cell. How do I know the Cell range in which the shape object is displayed. for eg : When I select a Cell B2 and then select the object(shape) in the cell B17, and I query on the Cell.Address it shows B2. How will I get the cell address as B17. ...

How can I convert a JTS-Geometry into an AWT-Shape?

Is it possible to convert a com.vividsolutions.jts.geom.Geometry (or a subclass of it) into a class that implements java.awt.Shape? Which library/method can I use to achieve that goal? ...

WPF Shape Rectangle Binding

Hi Guys. I'm trying to make some kind of shape in wpf, which does resize itself to the content (which should be text). Unfortunately, the stretch property isn't the right thing, since I want only the width of the Shape resized and without the borders (pls copy bottom example in xamlpad to see for yourself) of this shape stretched. The bo...

Round window playing movie using WPF

Is it possible with WPF to create a window that has the shape of a circle and uses a playing movie as the background? ...

How to store and retrieve multiple shapes in XAML/WPF?

Seem to be having a lot of problems doing what should be simple things with XAML / WPF - I have created some XAML-based images using shapes like Rectangle and Ellipse to create icons which I need other parts of my application to use - but I cannot seem to find out how to do this - I seem to be able to store a Canvas in the Resource Dicti...

A lightweight templateable WPF shape

I'm using ellipses and other shapes as onscreen markers, I would like others to be able to change these visuals using templates. However, as shape doesn't support templating I'm forced to create a basic UserControl, which defaults to show an ellipse, and then use that instead of the basic shape. Has anyone got a neater solution? I'm a l...

AffineTransform: scaling a Shape from its center.

Hi all, I'm trying to scale a rectangle from its center using AffineTransform. I'm sure the solution is obvious but I cannot make it work ! Here is what I've tested so far... import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.geom.AffineTrans...

Getting position of PhysX wheel

I'm using the NxWheelShape to simulate wheels on my car. When I render the wheel model, I use shape->getGlobalPose() to get a 4x4 matrix and render the wheel there. However this gives me the position of the shape, not where the casted ray hits other geomnetry, so even if the car behaves properly, the wheels are stationary (don't even rot...

SSIS Data Flow changes order of records

I thought I asked a similar question in http://stackoverflow.com/questions/462071/sql-order-by-and-left-outer-join-doesnt-have-correct-order, but this is slightly different. I am getting data from another SQL-Server 2005 database, using SSIS, and a standard data flow. The records that I get are in a different order than in the source t...

Custom shaped text box/edit control in .net?

I'm looking for a way to display and edit text inside a custom shaped box (e.g. a circle.) The text needs to use as much of the allowed space as possible, so just positioning an edit box inside the shape is not good enough. Requirements: 1) Given a GraphicsPath and a string, draw the text within the path. If the text overflows, truncate...

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: <GeometryDrawing Geometry="M0,0.1 L0.1,0 1,0.9, 0.9,1z" Brush="Gray" /> What do the M, L, and z letters in the Geometry attribute mean? What are they called? ...

[graphviz/dot] size of node with shape=circle

hi guys, i'm trying to set the size of the nodes this way: controller[shape=circle,width=.5,label="Controller",style=filled,fillcolor="#8EC13A"]; But all three nodes are with different size. How can i set fixed size? ...

2D Shape Scaling

Hi well I got a problem about scaling shapes.Well I m trying to scale two similar shapes.It is in 2d and each shape has n points .I found a statement like this from a paper I read "The size of a shape is the root mean square distance between the shape points and it's centroid." So from this point if I calculate the size of both shapes...

Custom Shape in Silverlight (porting app from WPF)

I'm converting a WPF app to Silverlight. The app includes a class which inherits from Shape. It overrides the DefiningGeometry property to return a Path object. However, the Silverlight Shape class doesn't have a DefiningGeometry property. Reading on the internet I've found others with this same problem. The solution seems to involve i...

Using wpf to draw scaled backgrounds on screen using minimal resources

I want to draw the same background on multiple windows for example the background could be concentric circles, a multi colored grid or any mathematical shapes combined. These backgrounds are customizable from an external routine which is in a different module. When i instruct the external routine to change the background all the windows ...

Why can I not delete this pesky Drop Down from a Sheet in Excel?

I am trying to delete a drop down from a spreadsheet using the following code: Dim objShape As Shape For Each objShape In ActiveSheet.Shapes objShape.Delete Next But objShape returns Application-Defined or Object-Defined Error: Debug.Print objShape.FormControlType returns xlDropDown Debug.Print objShape.Name                      ...

How can I fill an actionscript 3 polygon with a solid color?

I'm building a map editor for a project and need to draw a hexagon and fill it with a solid color. I have the shape correct but for the life of me can't figure out how to fill it. I suspect it may be due to whether the thing is a Shape, Sprite or UIComponent. Here is what I have for the polygon itself: import com.Polygon; import mx.c...

PHP - Bug in polygon GD library?

Hi guys, I have run into some trouble with the gd library's imagefilledpolygon(). For some reason some of my lines were ending up 1px out of place so I decided to debug it using imagepixelset to set the colour of my shapes points to red. if you look at the picture you can see some of the points are inside the shape ... some are outsi...

[AS3] Deleting a shape via code

Pretty basic question here, but its still got me a little confused.. I have an object(navigation menu bar) that I want to change the colors on with code, so in an updateColor function, I get the bounds of the object (which is a drawing shape contained in a movieclip) and redraw a new shape on top of it with the new color, but I've notic...

OpenGL, remove sections from a shape

In OpenGL, how can one cut a triangle shaped hole from a square? making the hole transparent. I'm also using SDL, maybe it can be achieved with an SDL surface? ...