rect Questions

14

Currently building a browser-based SVG application. Within this app, various shapes can be styled and positioned by the user, including rectangles. When I apply a stroke-width to an SVG rect eleme...
Polio asked 30/8, 2011 at 9:49

3

Solved

I'd like to know how I check whether two UI Panels on my Unity Canvas are overlapping each other. Currently I am doing this by comparing the canvas elements Rects Canvas Settings Render Mode: S...
Playtime asked 4/2, 2017 at 16:58

3

Solved

i want to move the rectangle based on mouse move. please refer below link. http://atomicrobotdesign.com/blog_media/draw/draw1.html get rectangle start position in mousedown event and start draggi...
Dyna asked 24/3, 2013 at 10:29

2

Solved

I found a very confusing issue in programming with Unity's UI rectTransform: in the inspector, we can find that the RectTransform's position was set to (0,0,0) but in the code in Start(), when I...
Berey asked 2/5, 2017 at 10:52

14

Solved

Can someone explain how to check if one rotated rectangle intersect other rectangle?
Anabal asked 9/6, 2012 at 15:50

6

I am trying to create a rectangle, but this is what happens when I move from starting coordinates towards the end coordinates , actually I want to show the progress when the user moves from one ...
Foison asked 21/12, 2012 at 9:29

4

I use OpenCV's face detector with C++ for dlib's face alignment instead of dlib's detector because of slow speed. To use dlib's face alignment, I have to pass the detection rectangle to the face al...
Careerist asked 19/1, 2016 at 8:24

1

Solved

I have this method in ItemDecoration class for recyclerView - @Override public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { outRect.left = space;...
Shanley asked 13/5, 2015 at 13:19

2

Solved

I am currently learning pygame. When programming rectangles with rounded corners I encountered a problem. pygame.draw.rect() draw a rectangle rect(surface, color, rect) -> Rect rect(surface, ...
Bergin asked 30/4, 2020 at 12:18

4

I want to add border for view, border width, color, radius can be set by user. So I try to draw a rect for it. When I use drawRoundRect to draw, the line at the corner is not smooth, it is thicker ...
Swayback asked 19/7, 2013 at 15:49

0

Initially I am having following following values to draw ovel, RectF(0.0, 0.0, 164.0, 1112.0) Matrix{[1.0, 0.0, 370.97623][0.0, 1.0, 196.02643][0.0, 0.0, 1.0]} bitmap = Bitmap.createBitmap((int) ...
Erotogenic asked 27/8, 2018 at 13:12

1

In my code it keeps giving me the error: pygame.surface.Surface.blit(a, (x1, y1)) TypeError: descriptor 'blit' requires a 'pygame.Surface' object but received a 'pygame.Rect'. Help! This i...
Venezuela asked 16/5, 2018 at 14:3

4

Solved

I consider this a pretty simple request, but I can't seem to find a conclusive answer in my searches. How can I determine the bounds of a particular visual element in my window, relative to some ot...
Overstay asked 12/8, 2010 at 22:2

7

Solved

I'm working on some 2D games with Pygame. I need to place several objects at the same time randomly without them intersecting. I have tried a few obvious methods but they didn't work. Obvious meth...
Geminate asked 7/12, 2010 at 5:43

2

Solved

Is it possible to manipulate SVG rect's borders in the same way as it border-left-width, border-right-width and so on does?
Kirstenkirsteni asked 16/7, 2011 at 11:25

2

Solved

I am performing a rather complex and long statistical analysis of a dataset and one of the final outputs are groups of 8 colored squares with a centered label. Both color and label depend on the an...
Marentic asked 12/8, 2017 at 3:24

3

Solved

I like to see if mouseclick is in a rectangle area (in canvas). In C# i would do this. var point = new Point(x, y); var rectangles = new List<Rect>(); //rectangles.add(new Rect(x,y,h,w)); fo...
Allergist asked 18/11, 2016 at 23:28

3

Solved

I've been trawling the internet for days trying to find the simplest code examples on how to draw a rectangle or lines procedurally in Swift. I have seen how to do it by overriding the DrawRect com...
Oarsman asked 10/8, 2014 at 15:9

2

I have created a class that extends View which I shall reference within a layout for it to be drawn on the screen. This class simply represents a Rectangle where I wish to make the length of the r...
Curcio asked 27/3, 2014 at 16:53

2

Solved

I am trying to bind the width and height of a Rect in a ViewPort like this: <VisualBrush.Viewport> <Rect Width="{Binding Path=MyWidth}" Height="{Binding Path=MyHeight}"/> </VisualB...
Zeeba asked 27/1, 2016 at 9:30

3

Solved

i create a rectangle in a specific size, and now i want rotate it to 45 degree, i used canvas.rotate, matrix, but not working. how is the proper way to rotate canvas in android? and i'm curios abou...
Pard asked 9/12, 2012 at 11:8

2

Solved

I am attempting to draw a bitmap along a rectangle, but I am not sure how to go about it. Is there a way to tile a bitmap along a Rect object using a paint property or something? I have looked, but...
Maxillary asked 13/7, 2012 at 14:7

2

Solved

How can I define a rect collision detection smaller than image in pygame? I'd like to have a collision patter like the second image , but I'm having a cut image when a try to set the width and heig...
Holleran asked 2/3, 2015 at 8:21

4

Solved

On a Google Search, I found this article: http://docs.python.org/release/1.4/lib/node201.html Which showed examples of using the rect class, to perform union/intersections/checking if points are ...
Bonni asked 6/6, 2011 at 9:4

2

Solved

I have been writing a test function to learn how a mouse 'click' action on a pygame.rect will result in a reponse. So far: def test(): pygame.init() screen = pygame.display.set_mode((770,430)) ...
Milkandwater asked 27/8, 2012 at 23:34

© 2022 - 2024 — McMap. All rights reserved.