Top "Shape" questions

Questions related to drawing or defining shapes.

AffineTransform: scaling a Shape from its center

I'm trying to scale a rectangle from its center using AffineTransform. I'm sure the solution is obvious but I cannot …

java swing geometry shape affinetransform
OpenCV closing a shape and filling it

I want to output a blue-filled hand but get the incorrect output. I've included the input picture, incorrect output picture …

c++ opencv shape fill contour
Creating a shadow around a canvas drawn shape?

What steps are required to create a shape e.g. rectangle with a shadow from scratch using a Canvas? Adding …

android canvas shape shadow
How to create a resizable rectangle with user touch events on Android?

I want to create a rectangular shape that will be resized with the touches of the user. Below image is …

android shape user-interaction
Text with shapes in drawable resource

Can i create text-shape in drawable resource? I was googling much but found nothing... Here is my drawable file: <?…

android text resources drawable shape
Transparent black gradient shape drawable color code

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient …

android gradient shape android-drawable
Change shape solid color at runtime inside Drawable xml used as background

I've a Drawable xml file (background.xml): <?xml version="1.0" encoding="UTF-8"?> <layer-list xmlns:android="http://schemas.android.…

android layout drawable shape
determine if a point sits inside an arbitrary shape?

Given a point's coordinates, how can I determine if it is within an arbitrary shape? The shape is defined by …

algorithm math geometry shape
Android - How combining Shape drwable and text color different states for button?

I have some troubles managing Android State List for a button. I specified some Shape drwable item for different states, …

android drawable shape textcolor
How to calculate angle between two direction vectors that form a closed/open shape?

I am trying to figure out the correct trig. eq./function to determine the following: The Angle-change (in DEGREES) between …

geometry shape pattern-recognition