Questions tagged [drawing]

Issues around forms and graphics being drawn onto a computer screen, windowing system or device

5923 questions
181
votes
12 answers

Circle drawing with SVG's arc path

Using SVG path, we can draw 99.99% of a circle and it shows up, but when it is 99.99999999% of a circle, then the circle won't show up. How can it be fixed? The following SVG path can draw 99.99% of a circle: var paper = Raphael(0, 0, 300,…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
142
votes
16 answers

How To: Best way to draw table in console app (C#)

I have an interesting question. Imagine I have a lot of data changing in very fast intervals. I want to display that data as a table in console app. f.ex: ------------------------------------------------------------------------- | Column 1 | …
Lukas Šalkauskas
  • 14,191
  • 20
  • 61
  • 77
124
votes
6 answers

Draw in Canvas by finger, Android

I need to build a project for drawing on canvas by fingers. How to get the touch event and motion event of my finger and then draw?
Sameer H. Ibra
  • 1,816
  • 2
  • 17
  • 25
119
votes
2 answers

Creating an empty bitmap and drawing though canvas in Android

I'd like to create an empty bitmap and set a canvas to that bitmap and then draw any shape on the bitmap.
Sunil Pandey
  • 7,042
  • 7
  • 35
  • 48
98
votes
6 answers

Draw radius around a point in Google map

I'm using the Google Maps API and have added markers. Now I want to add a 10 mile radius around each marker, meaning a circle that behaves appropriately while zooming. I have no idea how to do that and it seems it's not something common. I found one…
webjunkie
  • 6,891
  • 7
  • 46
  • 43
94
votes
18 answers

How to draw a checkmark / tick using CSS?

How to draw the tick symbol using CSS? The symbols I find using Unicode isn't aesthetically-pleasing. EDIT Icon fonts are a great suggestion. I was looking for something like this.
dayuloli
  • 16,205
  • 16
  • 71
  • 126
92
votes
1 answer

Why is UIBezierPath faster than Core Graphics path?

I was playing around with drawing paths, and I noticed that in at least some cases, UIBezierPath outperforms what I thought would be a Core Graphics equivalent. The -drawRect: method below creates two paths: one UIBezierPath, and one CGPath. The…
Caleb
  • 124,013
  • 19
  • 183
  • 272
84
votes
17 answers

how to stop flickering C# winforms

I have a program that is essentially like a paint application. However, my program has some flickering issues. I have the following line in my code (which should get rid of flickering - but doesn't): this.SetStyle(ControlStyles.AllPaintingInWmPaint…
BigBug
  • 6,202
  • 23
  • 87
  • 138
82
votes
5 answers

c# write text on bitmap

I have following problem. I want to make some graphics in c# windows form. I want to read bitmap to my program and after it write some text on this bitmap. In the end I want this picture load to pictureBox. And it's my question. How can I do…
nirmus
  • 4,913
  • 9
  • 31
  • 50
76
votes
6 answers

How to generate an image from text on fly at runtime

Can anyone guide how to generate image from input text. Image might have any extension doesn't matter.
Ravi Vanapalli
  • 9,805
  • 3
  • 33
  • 43
72
votes
1 answer

How to draw unfilled figures on Android?

Is it possible to draw unfilled figures on Android? By default circles and rectangles are filled.
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
69
votes
15 answers

Draw arrow on canvas tag

I want to draw an arrow using the canvas tag, javascript. I've made it using the quadratic function, but I'm having problems to calculate the angle of rotation of the arrow... Anyone have a clue on this? Thank you
José Leal Domingues Neto
64
votes
6 answers

iPhone smooth sketch drawing algorithm

I am working on a sketching app on the iPhone. I got it working but not pretty as seen here And I am looking for any suggestion to smooth the drawing Basically, what I did is when user places a finger on the screen I called -…
Suwitcha Sugthana
  • 1,301
  • 2
  • 11
  • 18
64
votes
6 answers

Android: How to overlay a bitmap and draw over a bitmap?

I have three questions actually: Is it better to draw an image on a bitmap or create a bitmap as resource and then draw it over a bitmap? Performance wise, which one is better? If I want to draw something transparent over a bitmap, how would I go…
Legend
  • 113,822
  • 119
  • 272
  • 400
63
votes
13 answers

How to render pdfs using C#

I want to load and draw pdf files graphically using C#. I don't need to edit them or anything, just render them at a given zoom level. The pdf libraries I have found seem to be focussed on generation. How do I do this? Thanks.
Garth
  • 923
  • 2
  • 10
  • 15
1
2 3
99 100