drawing

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? ...

painting by mouse click in qt

Hello, I have a class Square based in QWidget, it's game board consisting of rectangles 8x8. I draw this rectangles in my widget in: void Square::paintEvent(QPaintEvent *) Now i must click on some rectangle and in this rectangle must draw ellipse. I try: void Square::mousePressEvent(QMouseEvent *e) { if (e->button() == Qt::LeftB...

Clearing a text written on a NSRect

Hi, How to clear a text written on a NSRect? If I write anything on the previously written rect, it just overlaps! Thanks in advance. ...

Drawing text with gradient fill in Cocoa

Hello all, I have a project that needs to draw text in a view with a gradient fill in a custom subclass of NSView, like this example below. http://cl.ly/2znx I'm wondering how I can achieve this, as I'm pretty new to Cocoa drawing. ...

C# Drawing Libraries

Hi, I'm looking for a library which will enable me to visualize some xml entities I have, and manipulate them graphically (something similar to a UML design package, but simpler), like a cyclic flow graph. Anybody have any ideas where I should start? Preferrably I would like something managed, but if it's easier to do a HTML+JS impleme...

How to draw rectangle on MouseDown/Move c#

I am not quite sure how to draw a Rectangle (not filled) when I drag my mousedown while left clicking the mouse. I have this so far private void canevas_MouseDown( object sender , MouseEventArgs e ) { if( e.Button == MouseButtons.Left ) { _topLe...

Graph drawing VC++

I'd like to know, how coordinates can be transformed to center of the form for drawing mathematical functions. I already tried ->TranslateTransform(x,y) on Graphics object, this works, but only in one quarter of coordinates. How should I draw math functions on the form?Programming C++ long, but WinForms and Drawing are new 4 me. ...

Java 1.5 Issue with drawing shape using lines and angles

Hey, I'm trying to write a method that takes a starting Cartesian coordinate(x,y) an angle (in degrees), a length and a number of sides and draws a shape to an applet. So far this is what I have but, I cant figure out what I'm doing wrong. I plan on using line transformations for the actual angle change and that's not written in yet but ...