draw Questions

2

Solved

I am drawing a custom shape for a topbar in jetpack compose. I want to draw a shadow for the path. val topBarShapePath = Path().apply { moveTo(dpToPixels(leftPadding), 0f) lineTo(dpToPixels(leftP...
Gussy asked 3/12, 2021 at 22:57

2

Let's consider as an example that I have the following adjacence matrix in coordinate format: > edge_index.numpy() = array([[ 0, 1, 0, 3, 2], [ 1, 0, 3, 2, 1]], dtype=int64) which means that t...
Gudrun asked 17/4, 2020 at 15:9

3

Solved

I try to figure out how to draw linestring with fillcolor: red and outline: black. Like the following image: style = { fillColor: 'rgb(255,0,0)', outline: 'rgb(0,0,0)' weight: 10 }; It doe...
Decode asked 9/10, 2016 at 3:35

8

Solved

What I want to do? (blue will be changed as white) What I did? I have found a class which extends TextView that able to outline textview very close to what I want. The problem is that I could not...
Foetid asked 26/2, 2013 at 14:36

7

I have a line of code here that uses the python binding for opencv: cv2.rectangle(img, (box[1], box[0]), (box[3], box[2]), (255,0,0), 4) This draws a red rectangle on image img of thickness 4. ...
Assured asked 1/11, 2014 at 15:47

3

I am able to draw a text on canvas on motion view now the problem is that when i draw text & go for the next draw on same canvas my draw text is getting disappear i mean screen is getting redra...
Ridenhour asked 27/11, 2014 at 12:16

5

Solved

I'm using this script on the body onmousemove function: function lineDraw() { // Get the context and the canvas: var canvas = document.getElementById("myCanvas"); var context = canvas.getContex...
Dextroglucose asked 17/11, 2012 at 23:46

8

Solved

Is there a method which returns the width ( in pixels ) of a text to be drawn on an Android canvas using the drawText() method according to the Paint used to draw it?
Xylo asked 15/7, 2010 at 15:45

5

Hi I am having a problem with drawing a circle ERROR: module object has no attribute 'circle'. what am I doing wrong? And also how can I put numbers in circles? For example: (first click is circle ...
Towbin asked 20/10, 2017 at 7:1

3

Solved

I'm printing some text on an image with convert and I would like to decorate the text with a black shadow, I tried -blur or -gaussian but I cannot apply to the text, it is applied to the background...
Exultant asked 31/12, 2013 at 13:45

15

Solved

I've got a div that looks like a orange square I'd like to draw a white X in this div somehow so that it looks more like Anyway to do this in CSS or is it going to be easier to just draw this...
Vicentevicepresident asked 20/9, 2013 at 15:31

4

Solved

I have a UIBezierPath inside my custom UIView draw(_ rect: CGRect) function. I would like to fill the path with a gradient color. Please can anybody guide me how can I do that. I need to fill the ...
Kittenish asked 3/1, 2017 at 6:22

4

Solved

I'm currently working on the menu system for my Java game, and I wonder how I can center the text from Graphics.drawString(), so that if I want to draw a text whose center point is at X: 50 and Y: ...
Aidoneus asked 30/12, 2014 at 13:15

3

Solved

How can i draw a polygon according to the input coordinates which are given in C#.
Registered asked 24/8, 2012 at 11:27

7

Solved

I wonder if I can draw rectangle in XML. I know how to draw using drawRect method programmatically.
Siva asked 12/4, 2012 at 13:48

5

i need to draw lines between 2 element on html page the results should be like this: http://img2.timg.co.il/forums/1_173873919.JPG i wondered what the best way do this using canvas and html5 us...
Rough asked 18/2, 2014 at 20:49

8

Solved

I know how to draw a simple line: CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0); CGContextMoveToPoint(context, x, y); CGContextAddLineToPoint(context, x2, y2); CGContextStrokePath(contex...
Anatolian asked 20/8, 2009 at 3:52

6

Solved

How to draw bold/italic text with PIL? ImageFont.truetype(file, size) has an option to specify font size only.
Ladida asked 29/11, 2009 at 10:16

1

Using the code I found in this StackOverflow answer I successfully can draw anything in a Canvas by finger, and I will see what I draw while I draw it. From this, I want to make a function triggere...
Candler asked 1/2, 2022 at 0:56

4

Solved

This seems like it should be somewhat trivial, however in my android app, I am using canvas to draw a series of lines that are connected together. For some reason my lines are very very faint and t...
Yarborough asked 25/7, 2011 at 22:0

3

Solved

I have a class in Qt that inherits QDockWidget. And that class contains another widget. Is there any possibility to define a function in my QDockWidget inherited class that draws stuff on top of th...
Girhiny asked 14/6, 2012 at 14:4

2

Solved

I was wondering how to draw on the fly pixel by pixel in XNA/MonoGame and could only find this. Problem is, the question wasn't centered about how to actually draw pixel by pixel but rather manage ...
Dionne asked 18/11, 2021 at 15:39

9

Solved

I'm fairly new to Android and have been toying around with Canvas. I'm attempting to draw an arrow but I'm only having luck with drawing the shaft, none of the arrowhead is working. I have searche...
Commonly asked 15/7, 2011 at 22:18

4

Solved

How can I use OpenCV in Python to draw rectangles around some regions within an image for object detection purposes?
Woden asked 18/5, 2014 at 10:20

8

Solved

I am able to draw a circle and a rectangle on canvas by using path.addCircle() and path.addRect(). And now I am wondering how to draw a triangle or a star or a square or a heart?
Zina asked 10/8, 2011 at 7:46

© 2022 - 2025 — McMap. All rights reserved.