graphics

Digital or LCD-like display class?

I remember seeing a tutorial on Sun's site that had a class for a digital-like display, but I can no longer find it. How would you make numbers appear like a digital clock, using Swing? ...

How to install the Allegro library on Visual Studio 2008 and Windows Vista for the C programming language?

How do you set up to use the full Allegro library on Windows Vista and Visual Studio 2008? Do you have to compile it or is it only a matter of setting searchpaths? ...

Manage rotated moving raster map

Hi, My application present a (raster) moving map. I need to be able to show the map rotated base on any given angle. The program is currently in VC++/MFC but the problem is generic. I have a source bitmap (CBitmap or HBITMAP) and draw it to the device context (CDC) using StretchBlt. While this works fast and smooth for angle=0 (and the u...

What do you use as WPF alternative for Win32 Delphi?

If you are sticking with Delphi for Win32, what do you use as GUI framework, in order to approach the versatility and performance of the WPF framework on .NET? There are some alternatives out there, such as DXScene, but it appears to have a problem with font clarity. Graphics32 and AGG are excellent low-level libraries, but lack a high-...

Drawing Transparent Images

I'm writing a CSS sprite engine in C#, however I'm having a few issues. I create the master image, set all the properties to that then iterate the sprites and draw those to the master image. However when I come to save the master image it only appears to be just the empty master image with transparent background and none of the sprites. ...

Problem with a volumetric fog in OpenGL

Good day. I am trying to make a volumetric fog in OpenGL using glFogCoordfEXT. Why does a fog affect to all object of my scene, even if they're not in fog's volume? And these objects become evenly gray as a fog itself. Here is a pic Code: void CFog::init() { glEnable(GL_FOG); glFogi(GL_...

Introduction to Java Graphics Libraries

I just got into information-visualization and scientific-visualization and have been using Piccolo and a little with JFreeChart. I am trying to find a few new libraries that I can start using. I am looking specifically for libraries that involve multi-dimensional visualization and map overlaying (something like open-layers), but would be...

How to recognize rectangles in this image?

Hi, I have a image with horizontal and vertical lines. In fact, this image is the BBC website converted to horizontal and vertical lines. My problem is that I want to be able to find all the rectangles in the image. I want to write a computer program to find all the rectangles. Does anyone know how to do this or suggest ideas on how to ...

UIImageView: Rotated and Scaled. How do I save the results ??

Hi All, I am trying to save a rotated and scaled UIImageView as an UIImage in the position and with the zoom scale that the user edited too. But I can only manage to save the original image as it was before editing. How can I save the image as it is shown in the UIImageView with the same scaling and rotation? I have read that I need to u...

Validating Form Data and Displaying Graphics with JavaScript

I have not really used JavaScript before but I am trying to validate form elements as they are being filled out. I have an X and a Check mark that I am trying to display next to the field to show if it is valid or not. I know that this is partially right because I can use an alert but I am not sure how to alter the fields of the graphics...

Finding a wave graphic inside an image

Hi guyz, I need some help with a algorithm I'm working with for my college course. The idea is use an artificial neural network to read a electrocardiogram and try to recognize some disturbs in the waves, that's ok, I've the neural network and I can test it, no problem, but I'd like to give the function to the user to open a eletrocardi...

Delaunay tessellation in Python?

I need to find the Delaunay tessellation of a polygon in Python, and the only libraries I could find (Delny, scikits) triangulate point clouds, not polygons. Any suggestions? ...

drawing text within a JPanel

Hello all, I'm looking for the most basic description of how to draw text within a JPanel. I know there are a billion tutorials out there but none of them are clicking with me and I have some specific questions which may help others who are confused. As a setup (a testing app) I have a single class which has a JLabel, a JTextField, a J...

Blackberry app, how to add an image on top of another image file?

Hello all, I'm trying to develop a small map-like application for blackberry. I need to know how can I position a small image onto another much larger image. The larger image is like a map, I'll need to use the small the image to pin point a specific position on the map. So the smaller image should overlay on top of the larger image....

World-Coordinate Issues with gluUnProject()

I'm currently calling Trace (method below) from a game loop. Right now all I'm trying to do is get the world coordinates from the screen mouse so I can move objects around in the world space. The values I'm getting from gluUnProject are however; puzzling me. I was using glReadPixel(...) to get the Z value but that produced little to n...

Output W3C compliant XHTML from image slices

When slicing and saving for web in Photoshop CS4, the HTML layout output by Photoshop is done using tags, which is not what we want. Is there a way to get Photoshop to output W3C compliant tableless XHTML with CSS? Alternatively, is there another application that I can use to slice to W3C XHTML? ...

Why is my glutWireCube not placed in origin?

I have the following OpenGL code in the display function: glLoadIdentity(); gluLookAt(eyex, eyey, eyez, atx, aty, atz, upx, upy, upz); // called as: gluLookAt(20, 5, 5, -20, 5, 5, 0, 1, 0); axis(); glutWireCube (1.); glFlush (); axis() draws lines from (0,0,0) to (10,0,0), (0,10,0) and (0,10,0), plus a line from (1,0,0) to (1,3,0). ...

Multi-Dimensional Graphing Libraries for Java

I have been working on projects that deal with 2-Dimensional graphing, UML diagramming and relational graphing (node-link diagrams). I am interested in moving to projects that deal more with 3-Dimensional graphing of scatter plots and 3-Dimensional navigation. Could someone suggest a few books, or libraries that would help me get started...

Algorithms to eliminate or display outliers in a dataset.

I am trying to visualize a large multi-dimensional dataset. Each dimension has a different range. Values in one column may range between 0-100 while values in another could range from a few hundred thousand to a few hundred million. Therefore it is really hard to show a graph with a reasonable scale. I would like to visualize them using ...

what is the idea behind scaling an image using lanczos?

Hi, I'm interested in image scaling algorithms and have implemented the bilinear and bicubic methods. However, I have heard of the lanczos and other more sophisticated methods for even higher quality image scaling and I am very curious how they work. Could someone here explain the basic idea behind scaling an image using lanczos (both...