Questions tagged [drawellipse]
51 questions
2
votes
2 answers
Trying to draw an ellipse in a WPF window, but it is not visible
I am trying to create my own graph user control, I have one already working on win forms and I am trying to move it into WPF world.
I am starting with learning how to do drawing, so first thing I was trying to draw a black ellipse that fills an…

Bishoy
- 705
- 9
- 24
1
vote
1 answer
How to draw an ellipsoid using tilted or rotated lines using Plotly?
I am drawing an ellipsoid using the following function from empet plotly community form:
def ellipse(x_center=0, y_center=0, ax1 = [1, 0], ax2 = [0,1], a=1, b =1, N=100):
# x_center, y_center the coordinates of ellipse center
# ax1 ax2 two…

Ramy Abdallah
- 56
- 5
1
vote
2 answers
draw a ellipse curve in fragment shader
I want an smooth curve in webgl so I tried to draw a rectangle in vertex shader and send positions to fragment shader in normalize size and Size parameter which is the real size of square
in vec2 Position;
in vec2 Size;
out vec2 vPosition;
out…

mh-alahdadian
- 353
- 5
- 21
1
vote
2 answers
Why is the circle I drew larger than expected?
I drew an ellipse/circle with Graphics. It is the right size when I am in the WYSIWYG editor. However, when I run the program, the circle is larger.
correct sized circle in editor
too large sized circle
The "too large sized circle" is also of…

Dennis Gahm
- 51
- 5
1
vote
3 answers
Dragging graphics objects on top of bitmaps
I am attempting to drag a shape around a picturebox on the mousemove event but am struggling to get it to move smoothly. The picture box has an image loaded as the background and I would like the graphics object to drag a circle on top of the image…

fluent
- 2,393
- 4
- 22
- 32
1
vote
2 answers
Processing: Ellipse mouse follow without overlap
I am a complete beginner with Processing, and trying to get a row of ellipses to follow the path of the mouse with their edges touching, but not overlapping.
My first exercise was to track the mouse history in an array using a line, the commented…

anna
- 21
- 2
1
vote
2 answers
How to create ellipse shape geometry
How to create an ellipse from known axis coordinates and peak radius ?
From picture below :
Point A and Point B is know
R is a result of fresnelZone calculation (in Meters).
Point X is a Centroid of LineString AB
I Also read :
this
and
this
But I…

Bino Oetomo
- 571
- 1
- 10
- 23
1
vote
1 answer
How to draw a shape (ellipse or oval) following some points and calculate its area?
I am trying to plot rings of trees and calculate their areas. However, I have noticed that in reality not all rings have symmetric radii like a circle. I have data measurements of 4 radii, and I would like to plot rings (or any similar shape)…

Darwin PC
- 871
- 3
- 23
- 34
1
vote
1 answer
Draw Rotated Ellipses on Matlab
I am trying to plot a series of ellipses on Matlab. Basically I have a microscopic picture and I process it with ImageJ to obtain a series of data (area, center, major and minor axes) for each ellipse. I am trying to replot those ellipses on matlab…

Dorian Kartalovski
- 213
- 3
- 15
1
vote
1 answer
Ellipse - Finding the y-coordinate for a specific x co-ordinate
I was wondering if anyone can help me. I'm trying to modal an oval room, and the joists run parallel to one another at 400mm intervals, starting and finishing 200mm from the apexes of the oval. The central joist falls on the centre of the oval at…

Blue Plum
- 11
- 2
1
vote
1 answer
Why are my openGL ellipses pointed?
I copied this ellipse code directly from the opengl textbook:
void ellipseMidpoint (int xCenter, int yCenter, int Rx, int Ry)
{
int Rx2 = Rx * Rx;
int Ry2 = Ry * Ry;
int twoRx2 = 2 * Rx2;
int twoRy2 = 2 * Ry2;
int p;
int x = 0;
int y…

MayNotBe
- 2,110
- 3
- 32
- 47
1
vote
0 answers
d3 brush: not a rectangle but a circle?
We wish to use a d3 brush to select neighobrs in a scatter plot. For this, a circle is more natural than a rectangle. I imagine a sequence of actions:
1) set the circle's center with a mouse click
2) adjust the radius with mouse motion, the x & y…

paul shannon
- 355
- 5
- 15
1
vote
1 answer
Detect Collision between a Rectangle and an Ellipse
hey there I am new to this work! I have successfully create a Rectangle and a Circle. I am moving the circle in my Form and the rectangle with my Arrow Keys(left & right)!
The problem is that I just need to know how can detect the collision between…

Java Nerd
- 958
- 3
- 19
- 51
1
vote
1 answer
cannot draw ellipse on form load in c#
I am trying to draw some ellipse in a picturebox that contains a PNG on a formload in c#. When I execute the code down below, I see my ellipses for half of a second, then I don't see them no more.
When I click on my picturebox, I am able to draw…

Eric
- 363
- 2
- 9
- 24
1
vote
0 answers
How to draw ellipse equation ax^2+bxy+cy^2+dx+ey+f=0 with parameters a,b,c,d,e,f via openCV ellipse() method?
I've struct with Ellipse Equation: Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0
struct MyEllipse{
double A, B, C, D, E, F
};
Here is the example of my metadata of detected ellipses
----- METADATA OF DETECTED ELLIPSES -----
Ellipse Equation: Ax^2 + Bxy +…

user2563982
- 11
- 2