graphics

bar3d(),graph going out of range

I have made a program in graphics but when ever i enter any value in the graph it reaches its peak #include <graphics.h> #include <dos.h> #include <graphics.h> #include <conio.h> #define LEFT 5 #define BOT 300 #define BWIDTH 10 #define TOPFLAG 1 #define BDEPTH 4 #define SEPARATION 12 #define SPACE 15 #define N 10 #define TOP 5 #define ...

Reliable / Popular data visualization toolkit for the web

Hi, I'm looking for a reliable toolkit in any web-neutral[A] language, actively maintained / developed, stable that allows me to build graphs, charts, display data dynamically, allow drag-n-drop of datasets and refreshes automatically. Carlos Scheidegger recommended - http://vis.stanford.edu/protovis/ which looks great! But I'm looking...

movieclip.graphics disappear when using .draw() function

I'm making a drawing interface and using the Graffiti Canvas Library, on my stage I have a bezier point drawing tool, which is drawing graphics to a movieclip/sprite (I've tried both) and in using the drawToCanvas method which just passes data to the.draw() interface, the graphics immediately disappear. Any body have any ideas?? ...

Transparency in EPS -- does pdfmark work?

I'm trying to implement an export to EPS feature (in C++), and I'm using the pdfmark (pdf) extensions for transparency, but I have yet to see them have any effect. I'm using Illustrator 14.0 and GSView 4.9 as clients. Even using this example from Adobe's docs produces no transparency. %!PS-Adobe-3.0 EPSF-3.0 %%Creator: xan %%Pages: 1 %%...

ImageMagick - Scale and Fade Variable Height Images

I'm a bit overwhelmed by all the options of ImageMagick, so I'm looking for some guidance whether what I am trying to do is possible. I have a folder full of png images. Each image is a different size. I would like to: Scale the images to a fixed width say 200px, allowing the vertical size to remain variable. For this, I know I can ...

Drawing a non rectangular part of a picture in delphi canvas

Can anyone share a sample code to draw a non-rectangular part of a picture in delphi canvas? ...

.NET - need 10 points around an ellipse

Simple code fragment below draws an ellipse on a VB.NET panel. I now need to locate 10 points ON that ellipse, so I can draw small circles along the edge (the final effect will be an elliptical "table" with 10 "seats" around it. Help filling in the center of my loop below appreciated. Private Sub Panel1_Paint(ByVal sender As Objec...

Analog speedometer

Can some bode give me tutorial to make analog speedometer with Android? I have currently speed (get by GPS), but I don't know the graphic part. Thabks ...

What is an inner miter calculation?

I found the following algorithm to generate polygon outlines: void CGlShape::GenerateLinePoly(std::vector<DOUBLEPOINT> &input, int width) { OutlineVec.clear(); if(input.size() < 2) { return; } if(connected) { input.push_back(input[0]); input.push_back(input[1]); } float w = width / 2.0f; //glBegin(GL_TRIANGLES); for...

How to access directly to VGA

Hi guys. As most of you know CPUs are not well designed to do floating point calculation in contrast to GPUs. I am wondering how to use GPU's power without any abstraction layer or driver. Can I program for a GPU using assembly, C, C++ language (I mean how?). Although assembly seems to help me access the gpu directly, C/C++ are likely t...

How to keep/favor certain pixel values when resizing a tall BufferedImage?

I have a BufferedImage which is quite tall (something like 1100 pixels height) and not especially wide (maybe 200-300 pixels). The image consists of a data plot, but most of the pixels represents a background color/value that's not really interesting. My problem is that when the image is resized from a height of 1100 px to something like...

Graphical artifacts with OpenGL?

I'm not sure if its called a graphical artifact but see this: http://img835.imageshack.us/img835/9785/anomoly.png You will notice 6 pixels on the black outline that are out of place. My application allows zooming in and when I render I do this: RENDER: // Set an orthogonal projection matrix glMatrixMode(GL_PROJECTION); glLoad...

Recommended setup to develop games (2D/3D) on a Mac?

What tools, SDKs, applications etc are recommended to develop 2D/3D games on a Mac (and which will target Mac)? ...

Graphics object not flushing correctly

I have a Bitmap called "buffer" to which I Paint another image (using DrawImage) Paint a partially transparent gradient (using a LinearGradientBrush) I call Flush(FlushIntention.Sync) on the buffer's Graphics object after each of those steps. I then paint the contents of the buffer onto an on-screen control. However, while debugging...

Creating a Custom Media Library - Loading Images for Rendering (VB.net)

OK, I'm working on a project right now and I need to create a graphic library. The game I'm experimenting with is an RPG; this project is expected to contain many big graphic files to use and I would prefer not to load everything into memory at once, like I've done before with other smaller projects. So, does anyone have experience wit...

Evenly distributed dashed lines with OpenGL?

I notice that drawing dashed lines with GL will not make them even apart unless each vertex is equidistant from the last. Is there a way to simply make the whole path dashed evenly regardless of the distance between each point? Thanks ...

C Program: Line not drawing

#include<conio.h> #include<stdio.h> #include<graphics.h> #include<math.h> #include<dos.h> //#include"device.h" #define round(a) ((int)(a+0.5)) void main() { float x1,y1,x2,y2,dx,dy,x,y; int l,k,xinc,yinc; // int gmode,gdrive=DETECT; //initgraph(&gdrive,&gmode,"c\\tc\\bgi"); clrscr(); printf("enter the co-ordinates"); prin...

Zooming the graphics in Qt

I use QGraphicsiew and QGraphicsScene in order to draw graphics. How can I organize zoom-in and zoom-out (during zooming in scrolls should appear and while zooming out scrolls should disappear)? ...

Learning OpenGL with a Strong Math Foundation?

I am looking to learn open GL, I have a strong foundation of the maths behind graphics. What is the best route to take in learning the Open GL technology i'm open to using both Windows and Mac. Thanks in advance ...

Huge Whitespace exists to right after drawing image. Want to get rid of it.

I'm using the following codeproject to build an asp.net website and so far everything is good. My only problem is after the barcode is generated, a huge whitespace exist to the right of the barcode. I've been playing with this and am unable to resolve it. Details below: Link to Code Project Article: http://www.codeproject.com/KB/aspn...