drawing

Let users draw a line (arrow) on a div/img

Using the jQuery plugin: imgareaselect (http://odyniec.net/projects/imgareaselect/), I let users select areas of an image to add comments (just like flickr). I'm aiming to let users draw arrows pointing on specific image areas instead of drawing boxes. Any idea if (and how) I can modify imgareaselect to draw lines (with an arrow head) i...

drawing a freehand line on in UIView...

Can anyone share sample code to draw a free hand line (similar to one in many drawing/sketching applications on iPhone/iPad) on the iPhone( in UIView ). I've been trying to do this but only success had so far is to be able to draw a straight line from point a to point b. ...

graph in c , recomend book

Is any method or software to plot or display graph on unix dump terminal even the dump terminal is one color only(green)? For my knowledge, we can use text based character to draw graph but not graphic mode. platform is unix ansi c compiler CAN anyone recomend web page or a book ? ...

Problem subclassing UIAlertView in an InputAlertView different sizes and position between iOS4 e iOS3

I've got a problem understanding why a subclass of UIAlertView seems to be drawn in different ways in iOS3 and iOS4. My project must work under iOS4 (base sdk) and iOS3.1.3(deployment target). In that project I subclass a UIAlertView for creating an InputAlertView that is similar to the one that ask you pwd when you buy on the AppStore ...

Drawing over an NSCollectionViews subviews

I have the following code in an NSCollectionView subclass: -(void)drawRect:(NSRect)rect { if(!NSEqualRects(highlightBox,NSZeroRect)) { [[NSColor colorWithCalibratedRed:1.0f green:0.2f blue:0.2f alpha:1.0f] set]; NSRectFillUsingOperation(NSInsetRect(tempHighlightBox, -1.0, -1.0),NSCompositeSourceOver); ...

WPF: How to crop/clip a Drawing or a DrawingImage?

Hello, I have a function receiving a Drawing that I need to partially expose as a DrawingImage (i.e.: its position and size will be reduced/changed to fit in a target area). How can I crop/clip a region of the original Drawing? Or maybe it is easier to do that after the transformation to DrawingImage (how clip that DrawingImage)? ...

C# apply Color to Font

I have code like this. System.Drawing.Color col = System.Drawing.ColorTranslator.FromHtml("#101B83"); System.Drawing.Font nameFont = new System.Drawing.Font("Tahoma", 10); System.Drawing.Font birthdayFont = new System.Drawing.Font("Tahoma", 6); System.Drawing.SolidBrush drawBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Blac...

Drawing a Fill Circle Segment in VB6

Hey all, I've tried for a good part of the day to do this. So please help me out. I want to draw something like a pie chart segment. So just a piece of a pie(chart), filled with a certain color. I know we can draw a circle using the Me.Circle function in a PictureBox to get a fill-circle. However, when you add the start and end, the ...

Drawing with Silverlight in VS2010

Hi, I have a C# application developed with Visual Studio 2008 that is like a paint, where you can write using the mouse. I use the Graphics and Bitmap classes. Now, I need to do the same application but in Visual Studio 2010 and using the Silverligth Tools. Do you know what is the best way to do it? I was searching but not enough to fi...

Looking for some good text animation algorithms (commercial or open source)

I have a need to animate some text and don't have the time to come up with polished animation routines. I need some quality algorithms that provide source, because I will need to implement on multiple platforms. An example of what I'm looking for is the following Flash authoring product, but with source code, and preferably in C/C++, Jav...

Draw an Arc using mouse click in c#

Hi, Also i need to be able to draw arcs in user defined locations. My current code only lets me put it in one location in my picturebox. Here is my code: if (DrawShape == 3) { g.Clear(Color.Transparent); g.DrawImage(StoredImage, 0, 0); g.DrawArc(Pens.Indigo, pictur...

3d drawing in Canvas with HTML+JS

Is there any framework/engine that provide ability to draw 3d images on Canvas? I am planning to draw some primitives (different shapes) located in one plane: var dist = 2; var hexHalfW = 35; var lengthX = 20; var hexR = Math.sqrt(lengthX*lengthX+hexHalfW*hexHalfW);//40.31128874 var hexDiag = 2*hexR; var hexHeig...

ASP.NET drawing with controls

Hi there! What i want to do is something similar to this: http://sig.cm-olb.pt/develop.aspx?Layer=Cemit%C3%A9rio&Field=n_sepultur (Zoom, Drag, info, etc) Whats the best way to do it? Is there any component to help me? Thanks ...

GUI-embeddable Python drawing widget with anti-aliasing

I am writing a small diagram drawing application (similar to Graphviz in spirit), and need a GUI library that would allow me to embed a canvas capable of drawing anti-aliased lines and text. I want to have a text editor in one half of the window to edit the diagram code and a (perhaps live) preview pane in the other. Right now I have th...

draw a line from a stationary point to a moving point on iphone

How can I draw a line between one point (the center of one UIView) to a point that moves (touch location), and the line moves the 2nd point as the touch moves. ...

Drawing a triangle in a coordinate plane given its three sides

The length of three sides of the triangle, a, b and c will be given, and I need to find the coordinates of the vertices. The center (probably the circumcenter) can either be the origin or (x,y). Can anyone point me in the right direction? ...

Unprecise rendering of huge WPF visuals - any solutions?

When rendering huge visuals in WPF, the visual gets distorted and more distorted with increasing coordinates. I assume that it has something to do with the floating point data types used in the render pipeline, but I'm not completely sure. Either way, I'm searching for a practical solution to solve the problem. To demonstrate what I'm t...

about asynchronous draw method

Please teach the method to draw in 2D image by the asynchronous (each method of Windows API and DirectX). ...

Implement faster graphics operation on WPF Canvas

Hi, I am trying to build a simple graphics application in WPF C#. The purpose is to draw 10000*10000 rectangles of size 4 pixels each. I have modified the OnRender method of the canvas to draw the rectangles. Drawings are performed for smaller number of rectangles (say 50*50 or 100*100 rectangles of 4 pixel each) but it is slowing down...

HTML5 drawing with "replay" feature"

I am trying to implement a html5 drawing app. Currently, I can allow for a drawn image to be saved. I want to be able to have a replay feature that redraws the image the same way that it was originally drawn almost as if it were a video. Any ideas? ...