Top "Rect" questions

To be used with RECT structure when using winapi.

WPF Shape Rectangle Binding

I'm trying to make some kind of shape in wpf, which does resize itself to the content (which should be …

wpf binding shape rect
Convert OpenCV's Rect to dlib's rectangle?

I use OpenCV's face detector with C++ for dlib's face alignment instead of dlib's detector because of slow speed. To …

c++ opencv rect dlib
Determine the bounding rect of a WPF element relative to some parent

I consider this a pretty simple request, but I can't seem to find a conclusive answer in my searches. How …

c# wpf layout bounds rect
Android draw text into rectangle on center and crop it if needed

I want to draw text into rectangle on center (horizontally and vertically). If there is too much of a text …

android text draw rect
Roi extraction with cv::rect in opencv

I am trying to extract the first quarter of a 100x100 pixel image. I was thinking of using the cv::…

opencv vector rect roi
How to rotate a rectangle drawn on canvas in Android?

I am drawing a text on android canvas using the following piece of code Rect rect = new Rect(); paint.getTextBounds(…

android rotation android-canvas draw rect
Javascript: rect.contains(point)

I like to see if mouseclick is in a rectangle area (in canvas). In C# i would do this. var …

javascript point rect
Check if UI elements/RectTransform are overlapping

I'd like to know how I check whether two UI Panels on my Unity Canvas are overlapping each other. Currently …

c# user-interface unity3d rect
How to scroll to center of child of HorizontalScrollView?

I need to scroll to the center of childView(TextView) of the HorizontalScrollView. i have get the center child by …

android horizontalscrollview rect
Rotate square on its axis in HTML5 Canvas?

I want to create a function that rotates a square on its axis. var halfWidth = canvas.width/2; var halfHeight = canvas.…

javascript html html5-canvas rect