draw

Override System Draw on WM6+

Im developing a "desktop" for WM6+ and i was wondering if i can override the draw that WM does when it starts the OS (like the start menu, softkey bar, and background) basically have my program draw the today screen instead of windows. My program will of course integrate everything that the original "screen" integrated. C++ ...

Drawing on top of an image in Javascript

I want to let the user draw on an image in a browser. In other words, I need both bitmapped graphics and drawing capabilities, whether vector or bitmapped. Canvas looks good, but is not supported by IE, and though there is ExCanvas, I wonder if ExCanvas is stable enough for consistent use in IE6 through 8. Or best of all, is there an o...

draw by mouse in openGL

how to draw a polygon by mouse with openGL in c++ ...

Access to a single pixel in C#

Hello, I'm working on a school project right now. It's meant to be a 3D editing software, (like a very minimized version of Maya). I have to write it in C#, using the 'Windows Application Project'. I intend to implement all the 3D stuff myself, from projections to shading. My question is, how can I get direct access to a single pixel in ...

Linux: Fastest way to draw

I need to draw an 2d-array of color triplets on the screen, what is the fastest way of doing that? The target language is C/C++ and the program has only to work on Linux, but platform independant solutions are preferred obviously. I run Xorg, XVideo and OpenGL are available. How many FPS can I expect on 1024x768 on an Intel Core 2 Duo ...

How to draw smooth images with C#?

I'm trying to draw images on a C# form (in PictureBoxes, as well as using Graphics.DrawImage()), and am looking for a way to draw them smooth. The images must be a format that supports transparency, so PNG, GIF, SVG, and WMF. C# doesn't support SVG files out of the box, and I haven't found a good third-party library to use (I found Svg...

How to create MS Paint clone with Python and pygame

As I see it, there are two ways to handle mouse events to draw a picture. The first is to detect when the mouse moves and draw a line to where the mouse is, shown here. However, the problem with this is that with a large brush size, many gaps appear between each "line" that is not straight since it is using the line's stroke size to c...

Force screen redraw after drawing to screen's DC C++

I'm creating a Windows Mobile custom SIP and as the user presses or "hovers" over a button on the keyboard I draw it's corresponding selected image (iPhone-esque) to the screen's DC using ::GetDC(NULL). It is developed in Win32 C++. My problem is that I can never get the screen to repaint itself, erasing the previously drawn key. I'v...

How to draw a transparent stroke (or anyway clear part of an image) on the iPhone

I have a small app that allows the user to draw on the screen with the finger. Yes, nothing original, but it's part of something larger :) I have a UIImageView where the user draws, by creating a CGContextRef and the various CG draw functions. I primarily draw strokes/lines with the function CGContextAddLineToPoint Now the problem is th...

How to draw a graph in PHP?

Hey I want to draw a graph(Stdent mark distribution) in my site based on PHP. How can I do this? ...

Need help with Converting Points to Shapes

below are a whole length of code i have copied from NEHE Production (Lesson 25).. i was just trying to play around but seem to not able to change/convert each points into a individual spheres nor cylinder.. somehow when i did my adjustment they are not arranged in the way they are suppose to and they won't rotate.. i planed to add light ...

draw text with GLUT / OpenGL in Python

Hey, I m drawing text with OpenGL in Python. It all works ok, however the font is really bad. If I make it thick the letters start to look very occurred (especially the ones which are round like 'o' or 'g'. For the purpose of my program it must be thick. Is there any font I could use which does not look so bad when thickened, or is ther...

Flex: Draw on different frames of a MovieClip

How can I used ActionScript to draw on different frames of a movie clip. That is, make it so that movieClip.gotoAndStop(0); will show something different to movieClip.gotoAndStop(1); ...

Beginner iphone question: drawing a rectangle. What am I doing wrong?

Trying to figure out what I'm doing wrong here. Have tried several things, but I never see that elusive rectangle on the screen. Right now, that's all I want to do -- just draw a single rectangle on the screen. I'm getting an "invalid context" on everything but the CGContextSetRGBFillColor(). Getting the context after that seems kind...

[WPF] What is the best way to draw text along with geometry?

In WPF, I'm starting to use classes such as LineGeometry, EllipseGeometry, GeometryGroup, Path... in order to draw 2D graphics. I chose these over shapes because I saw it could be faster thanks to the freezing feature. I need to draw text along with geometry, with specific fonts. The text needs to be positionnable with the same coordina...

Drawing pies using PHP ImageMagick

Is there a way to get GD's function imagefilledarc()'s result in using PHP ImageMagick? I've looked around but haven't found a satisfying solution so far. I want it to support transparency, and use it to draw pies. ...

How to draw hypergraphs?

I've searched for a long time a program that could draw hypergraphs, I've onl found the (marvelous) dot program on linux that can draw graphs. Anyone knows an equvalent for hypergraphs? ...

can not draw on GDI+ bitmap object.

I am writing program in c++ gdi gdi+. Drawing large image on gdi+ bitmap is slow is using gdi+ api. So I used the following way to draw: Bitmap img(xxx); Graphics gr(&img); HDC dc = gr.GetHDC(); ::StretchDIBits( dc, rec.left, rec.top, (rec.right - rec.left), (rec.bottom - rec.top), m_recRegin.left , m_recRegin.top, ...

Ability to draw and record a signature as part of a form - iphone

Apolgies in advance for any errors.. new to this and am not a developer/programmer.. just have some basic unix experience. I have searched the web and struggled to find a solution to my problem when I stumbled onto this website which maybe suggested that there is a solution to my question. For work i use a windows mobile device because...

Print .net coordinates units

Hello, please help me. I want to print some reports from .NET app. I read how to use PrintDocument class and Graphics object to draw my report. But i don`t know which units are used in methods, for example: Protected Overrides Sub OnPrintPage(ByVal e As System.Drawing.Printing.PrintPageEventArgs) MyBase.OnPrintPage(e) Dim g A...