Questions tagged [drawing]

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

5923 questions
62
votes
5 answers

C# - Faster Alternatives to SetPixel and GetPixel for Bitmaps for Windows Forms App

I am trying to teach myself C# and have heard from a variety of sources that the functions get and setpixel can be horribly slow. What are some of the alternatives and is the performance improvement really that significant? A chunk of my code for…
purdoo
  • 992
  • 1
  • 12
  • 16
60
votes
2 answers

How to place multiple evenly-spaced arrowheads along an SVG line?

I am new to SVG and I am trying to draw a straight line between two points. I managed so far by using this command: " What is the simplest…
Osprey
  • 1,523
  • 8
  • 27
  • 44
55
votes
6 answers

Pure Java reimplementation of GraphViz?

Is there an Open Source java alternative to GraphViz? I'm aware of the existence of Grappa which basically wraps the Graph interface to GraphViz as an JavaAPI. However the layouting is still done by the GraphViz binaries. I'm looking for a…
paweloque
  • 18,466
  • 26
  • 80
  • 136
53
votes
1 answer

How can I parse out points and draw a route on a Google Map in Android?

How do I get points & draw the route on Google maps in Android OS?
Matt Rutkowsky
  • 541
  • 1
  • 5
  • 4
53
votes
2 answers

How to draw a line between draggable and droppable?

I'm using the excellent JQuery UI to do a "mapping" so the user can "map" persons from one program to persons from other program. using this simple JQuery: $(document).ready(function() { $("div .draggable").draggable({ revert: 'valid', …
balexandre
  • 73,608
  • 45
  • 233
  • 342
52
votes
9 answers
51
votes
4 answers

Is there already a canvas drawing directive for AngularJS out there?

Is there already a directive to draw/paint things on a canvas? So you can implement something like Paint or even something bigger like Photoshop etc., but a very basic example would suffice. I haven't found one in my search and if there's already…
justGoscha
  • 24,085
  • 15
  • 50
  • 61
47
votes
7 answers

Convert bitmaps to one multipage TIFF image in .NET 2.0

How can i convert an array of bitmaps into a brand new image of TIFF format, adding all the bitmaps as frames in this new tiff image? using .NET 2.0.
mirezus
  • 13,892
  • 11
  • 37
  • 42
45
votes
10 answers

How do I draw lines using XNA?

I've read a bunch of tutorials involving XNA (and it's various versions) and I still am a little confused on drawing primitives. Everything seems to be really convoluted. Can someone show me, using code, the simplest XNA implementation of drawing…
mmcdole
  • 91,488
  • 60
  • 186
  • 222
42
votes
5 answers

Fast 2D graphics in WPF

I need to draw a large amount of 2D elements in WPF, such as lines and polygons. Their position also needs to be updated constantly. I have looked at many of the answers here which mostly suggested using DrawingVisual or overriding the OnRender…
morishuz
  • 2,302
  • 4
  • 21
  • 21
41
votes
3 answers

Best way to draw a bar chart in LaTeX?

I was looking for it here in Stack Overflow as in Google, and I found a lot of packages to draw, but it seems a complex task, so I would like to know which is the most appropriate package to draw bars, and associate data to it. Also I was looking…
Tae
  • 1,665
  • 5
  • 24
  • 45
38
votes
6 answers

Can I draw outside the bounds of an Android Canvas

I'm porting an app written in a graphics environment that allows drawing to happen outside the bounds of the clipping rectangle. Any way to do this in Android?
Mark
  • 1,049
  • 4
  • 12
  • 14
38
votes
2 answers

Draw on the screen without a form

Is it possible to create a big white rectangle on the screen, without using a Forms Application? It should cover the whole screen if possible. I know I have to use the System.Drawing and tried several steps, but none have actually printed anything…
user1988147
  • 383
  • 1
  • 4
  • 4
37
votes
2 answers

Converting System.Windows.Media.Color to System.Drawing.Color

private void DialogFont_Load(object sender, EventArgs e) { LoadInstalledFonts(); SetupInitialDialogSelections(); lblPreview.ForeColor = colorPicker1.colorPickerControlView1.CurrentColor.Color; } I'd like to convert the value to a…
delete
37
votes
2 answers

What actually handles the drawing of the Windows Wallpaper?

I'm trying to work on a project where I can animate the windows 7 wallpaper, either with opengl/directx, or GDI. I looked into how the windows desktop windows are laid out, and i figured out the whole "Progman" -> "SHELLDLL_DefView" ->…
logisticalerror
  • 391
  • 3
  • 5