Click here to Skip to main content
15,905,607 members
Everything / Shape

Shape

shape

Great Reads

by V.
Case study on how to solve a complex problem by dividing it into smaller problems.
by JoseMenendez
An orthogonal connector uses only vertical and horizontal lines to connect two shapes
by Yang Kok Wah
Implementing shape control that supports transparency, custom design-time editors and simple animation
by The Zakies
[tut4] how to draw lines & to draw different types on end shapes like rectangle and circle using C#

Latest Articles

by JoseMenendez
An orthogonal connector uses only vertical and horizontal lines to connect two shapes
by Yang Kok Wah
Implementing shape control that supports transparency, custom design-time editors and simple animation
by The Zakies
we will build an outline line around the drawn lines so we would test the mouse click on this outline to know which line is selected. and we would in the coming update build a select function inside the move tool
by The Zakies
[tut4] how to draw lines & to draw different types on end shapes like rectangle and circle using C#

All Articles

Sort by Score

Shape 

14 Mar 2016 by V.
Case study on how to solve a complex problem by dividing it into smaller problems.
24 Apr 2019 by OriginalGriff
If you are waiting for permission,m then consider it given. Forget dictionaries and other collections until you have the actual classes in place - you don't need to worry about totals or anything else until you have your shape classes sorted. I would start with an abstract Shape class, which...
7 Sep 2014 by CPallini
This Wikipedia page could be your starting point: "Bin packing problem"[^].
7 Nov 2014 by Manas Bhardwaj
If I were you than instead of rebuilding, I would buy an existing component or reuse which is already available:And btw, why still Silverlight and not HTML5?Check these out:A WPF Custom Control for Zooming and...
9 Jun 2015 by Member 11492419
I made a method called the loadTexture() in my cubeTexture class that has all the code to add texture to the cube. I put this method in the onSurfaceCreated() of the GLSurfaceView Renderer, like this: @Override public void onSurfaceCreated(GL10 gl, EGLConfig config) { ...
N 20 May 2024 by Jo_vb.net
Binding DG1 to DG2 makes no sense. Use ResourceDictionary ResourceDictionary and XAML resource references - Windows apps | Microsoft Learn[^] or create a DataGrid Usercontrol as template for your DataGrids.
3 Sep 2014 by HuggableAlien
Hello,I am trying to make a program similar to Moraware's CounterGo, and one of the best features in it is the way you can draw a polygon by simply dragging the mouse around a canvas.Is there a way to recreate this in Javascript? I have tried SVG-Edit, but there are too many tools, and I...
3 Sep 2014 by Sergey Alexandrovich Kryukov
If SVG-Edit is too much for you, it's possible that you want too much. :-)Well, you can try also this: http://svgkit.sourceforge.net[^].(But, generally, it's hard to find what you want, because — who would do it for you? It's clear that you can just take SVG standard and Javascript and...
7 Nov 2014 by RafOues
I'm new to Silverlight and i'm looking to create a Chart that contains a 2D shape in his plot area.At the same time i want it to have a zoom in / zoom out on behavior.Does Silverlight offer such kind of controls ? If not which one can be suitable in this case.Thxadditional...
7 Nov 2014 by Sergey Alexandrovich Kryukov
Must be Canvas!Please see: http://msdn.microsoft.com/en-us/library/system.windows.controls.canvas%28v=vs.95%29.aspx[^].—SA
17 Jan 2015 by MRS1989
I want to create a new Master Shape in the Microsoft Visio 2013 x64 like the Class Master Shape in the UML Class Stencil.When add the Class Master Shape to a page, it appends two Member and one Separator Master Shapes in itself automatically. Furthermore, can add more Member and Separator...
19 Jan 2015 by MRS1989
Check the following Links: - StackOverflow[^] - Office Dev Center[^]
23 May 2015 by Member 11492419
Hello everyone,I created a rotating 3-D Cube in OpenGLES 1 and I can't figure out how to get color on it. Hopefully this is an easy fix, I wrote the code I needed to draw color on it, but it doesn't seem to do anything. Here is the code for the Cube:public class Square {private...
11 Jun 2015 by Fredrik Bornander
Textures and colors are set on the pipeline before draw calls, and are then used/re-used where applicable on subsequent draw calls.That means if you want your Square to have a different texture that your Triangle, you'll need to bind the texture before drawing the Square and then disable it...
23 Jun 2015 by MRS1989
Answer of 1st Question:This problem always is for don't attend to the "Category" word. In most cases, people don't attend to that word and use the "Shape Master Name" instead of "Shape Category"; however, they're different with each other.In my case, I was being entered the Shape Master Name...
12 Sep 2015 by ravi chandra kumar
I want to move a shape(Example: rectangle, circle or etc) horizontally from left to right. while the shape is moving an audio file should play until the shape stops. can somebody help me please.
26 Sep 2015 by Maciej Los
You did not provide enough information. Nevertheless...Please, refer this: Adding Controls to Office Documents at Run Time[^]
28 Sep 2015 by Member 11991359
You can use:var newContentControl = currentRange.ContentControls.Add();newContentControl.SetPlaceholderText(null, null, "Empty");newContentControl.Title = elementType.ToString();You must set the range to the location where you want to insert the content control or use...
7 Dec 2016 by Dave Kreskowiak
It would seem kind of obvious to just check to make sure the height is greater than 0 before drawing the rectangle.
9 Jan 2017 by GaneshRfromSpace
The below code places my 8 shapes in 8 distinct positions.Shape aShape = new RoundRectangle2D.Double(60,112,310,60,10,10);Shape bShape = new RoundRectangle2D.Double(60,194,310,60,10,10);Shape cShape = new RoundRectangle2D.Double(60,276,310,60,10,10);Shape dShape = new...
9 Jan 2017 by Richard MacCutchan
This is the same issue you asked at Can I add key listener to graphical shapes in java AWT ?[^]. And I already explained that to scroll shapes you need to calculate the new positions based on how many pixels to move per keypress. You then redraw the shape at the new position.
24 Apr 2019 by Maciej Los
In addition to OriginalGriff's solution... You don't need to create "an identity for the type of a shape within a collection". All you need to do is to detect the type of custom shape. For further details, please see: Inheritance - C# Programming Guide | Microsoft Docs[^] Polymorphism - C#...
25 Jul 2019 by mk2tk2
Hi! I'm looking for a help on how i can write code in VB.NET so that i can browse a shapefile from my computer and save it to SQL database. I know there are ready-made tools like this https://www.sharpgis.net/file.axd?file=SqlSpatialTools_build3759.zip[^] that are capable to do this task BUT I...
30 Aug 2019 by Member 13482508
I made this function to sort the rectangle so that it will draw. private Rectangle SortedRect(Point P, Size S) { if (S.Width
24 Sep 2020 by DoingWork
Is there any library for WPF (XAML code) that contains Shapes or Geometries of Electronic Components like Fuse, Transformer, Wire, Resister, Diode and etc What I have tried:
24 Sep 2020 by Dave Kreskowiak
Probably doesn't exist. You're best source for component outlines is probably going to be for PCB layout software like Eagle. That have large numbers of libraries of components that have outlines for the device itself as well as pad layout and...
30 Sep 2020 by Gerry Schmitz
You're not "reinventing the wheel" when your only other alternative is to "buy" the wheel. That's what commerce and trade are all about and why I don't make my own shoes. And if it was that easy, there comes the question of "fair use": MS could...
8 Dec 2020 by JoseMenendez
An orthogonal connector uses only vertical and horizontal lines to connect two shapes
24 Feb 2021 by tomtomGIS
I have 1,000 polygons and 1,000 poly points or single points defined within QGIS 3.16 I want to add to each shape a geofence. I want to track movement events as one gps locator moves in or out of the defined geofences. example: a ship is...
9 Aug 2022 by Member 15652447
Basically I have this program that shows the maximum and minimum independent sets, but I want to draw/show 2 graphs instead of 1. Currently it only shows or highlights the maximum sets in one jframe, and i want to insert the minimum set. What I...
26 Mar 2023 by Mark Allan Wright
How do I make a RectangleShape, placed on the usercontrol, MouseDown Event trigger Usercontrol.MouseDown Event? What I have tried: I have tried EventArgs, MouseEventArgs, RaiseEvent, OnMouseDown, AddHandler. Please do not give me code for...
26 Mar 2023 by Richard MacCutchan
You have been goiven a suggested solution to the MouseDown event issue at Working with usercontrols - need mousedown to work in a control (rectangleshape)[^].
U 20 May 2024 by Sh.H.
Hi people. I have a two DataGrids. Both have a column with Shape of Rectangle, I mean all cells have Rectangle with same attributes. How may I bind the Fill and the Height of Rectangles in DataGrid1 to Rectangles of DataGrid2 in WPF ? Thanks ...
23 Mar 2017 by Yang Kok Wah
Implementing shape control that supports transparency, custom design-time editors and simple animation
7 Jun 2016 by The Zakies
[tut4] how to draw lines & to draw different types on end shapes like rectangle and circle using C#
20 Jun 2016 by The Zakies
we will build an outline line around the drawn lines so we would test the mouse click on this outline to know which line is selected. and we would in the coming update build a select function inside the move tool
29 Nov 2023 by OzzieOzburn
Dear all, This is for the my new project so i need suggestion about how to start. I want to detect random shape defects and color changes on the fax paper. For example there is a randomly shaped torn area on the paper. I want to find this...
25 Jul 2019 by OriginalGriff
Quote: 'code to check if it is a shapefile Two options: 1) Basic - just check the extension. Path.GetExtension Method (System.IO) | Microsoft Docs[^] will return ".SHP" or ".TXT" as appropriate. But ... why do you allow non ".SHP" files if you only want those? 2) Advanced: read the file and...
24 Oct 2015 by Patrice T
Wrong place: We don't do HomeWork, it your assignment you are the one that have to do it.So the bast is to start working.This forum is here to help programmers that are stuck in some code, to do code for you.If you want a programmer to do the assignment for you, go to...
24 Apr 2019 by AKJKTM
Create a C# library project that calculates the total area of all shapes in a collection. Details For simplicity, two types of shapes are required below Circle Rectangle Support of adding different types of shapes in the future with minimum change to code is desired. Each shape object contains...
7 Sep 2014 by RAHAOUI Mehdi
Hi everyone,I've an idea but i don't know how to proceed with it, i want to develop a software that can determine for me how much static shape (shape_one) i can put in a pre-defined shape (shape_two) by filling maximum of shape_two (optimizing)i've attached an illustration of the general...
7 Mar 2015 by MRS1989
Objective:First, I should say what I want to do, and then I'll describe what I've done to achieve to my Goal in the next (Descriptions) part.I want to create a Custom List Master Shape from the Plain Container of the Diagram Parts section in the Insert tab of the ribbon. Then, I want to...
12 May 2015 by Member 10405651
I am trying to change the position on an Ellipse-shape. I want the Ellipse to follow my hand position (using the Kinect). I created a Ellipse-shape in C# using the Toolbox. I named the Shape "HandEllipse". The position of the right hand is named "Righthandintx".When I press view code on the...
23 Sep 2015 by Jeff Lyu
I make a word addin to print vouchers. that contains a custom control called BarcodeWithZXing. the BarcodeWithZXing is written by C# and build to a Dll file. the addin reference to that. the question is :how to add the BarcodeWithZXing to document. I try the method...
24 Oct 2015 by Member 11768179
i have an assignment on one of my classes. i need to "make" a musical instrument with a phone. I was thinking of making something like this:there is a musical staff on a wall (or a board). then, the user can stick musical notes on that staff and point their phone camera to that wall. then...
30 Aug 2019 by kursatdemir58
Hello, I ve been googling for hours. Please help me! Im having trouble with real time rectangle drawing, Let's say 1st second I want to draw y1 to positive heigth, in 2nd second y1 to negative heigth. But DrawRectangle doesn't except negative values and doesn't draw. I show in drtail in picture...
16 Jan 2017 by Vipul H Mistry
Try this solution, it will work. I was facing same issue and this solution worked for me. http://stackoverflow.com/questions/33139939/filling-a-shape-of-visio-with-color-in-c-sharp
30 Sep 2020 by DoingWork
I want to convert Visio Shapes to Path Data. Then I want to use these path data in Xaml (WPF) If I spend my time on re-inventing the wheel, it will take too much time Any Help ? What I have tried: I have spent very large time on Shapes and...