graphics

java graphic library

Hi, i'm trying to develop an interface like Windows Task Manager -> Performance Tab using Java. Can you suggest any Java Graphic Library to ease my development ? ...

Turning off antialiasing in Löve2D

I'm using Löve2D for writing a small game. Löve2D is an open source game engine for Lua. The problem I'm encountering is that some antialias filter is automatically applied to your sprites when you draw it at non-integer positions. love.graphics.draw( sprite, x, y ) So when x or y is not round (for example, x=100.24), the sprite app...

Is there any way to have an "inverted" clip region for painting in Java?

I want to fill a region using Graphics.fillRoundRect(), but I want a rectangle in the middle of it to not be filled. Essentially, given a component of 100x30, I want to set clipping to be the rectangle at 10,10 of size 80x10 but have the fill only paint the area outside that 80x10 rectangle. The reason is that I want a border of n pixe...

Specify Width and Height of Plot

I have a panel containing three plots. How can I use par to specify the width and height of the main panel so it is always at a fixed size? ...

Do "expert" programmers and designers really exist

It seems like every job posting I see any more, and most recruiters I talk to, insist that the only way I could qualify for the position posted is if I'm an "expert" programmer and designer. And when they say "programmer and designer" they seem to mean, designer, front-end developer and back-end programmer (and most seem to assume that a...

What libraries are available to help create 2D Java games for phones?

I want to begin developing 2D Java games for phones (on J2ME) therefore I'd like to know if any libraries or "engines" exist to help out in the various graphical tasks: Drawing text with pixel fonts? Drawing bitmaps for sprites with multiple frames like animated GIFs? Drawing graphics with code, lines, beziers, flood-filling and gradie...

What would be the best way to simulate Radar in C#?

I have a Picture box inside a Groupbox in my form with the Picture of a radar set as the background picture. My intention is to dynamically load tiny Jpeg images within the radar area (overlaid) at runtime but I am unsure as to the best way to achieve this. All crazy ideas welcomed (but I would prefer sane easy to do ones). Thank you all...

j2me 2d graphics engine

For J2ME I found a number of GUI frameworks like LWUIT, J2ME Polish, Twuik etc however, I am looking out for a 2d Graphics Engine for the Java ME platform preferably lightweight < 50K, I came across TinyLine this supports reasonable features for a mobile device. On similar lines do we have an open source or free 2d graphics engine, lib...

How do I draw a point inside of an instance of UIImageView?

How do I use Core Graphics to draw inside of a instantiated UIImageView (No class files to override drawrect with -- just a reference to the instance)? I want to draw a simple point of fixed width (say, 10 pixels diameter) and of a certain color. ...

Rules of Thumb in GDI+

I have been working on some GDI+ code in .NET and have been learning my lessons the hard way. Simple things like: What looks good on screen may not look nice on paper and vice versa Caching too many objects can result in an OutOfMemoryException Floats aren't exact ...and so on. I'm sure there is a lot more that experienced folk can a...

Is it better to use Bitmap or EncodedImage in BlackBerry?

In BlackBerry, is it better to use the Bitmap class or EncodedImage in terms of memory usage and performance? Are there any specific tips on using these classes? ...

Reflections and other transformations with Java Polygons

Hi everyone, I'm working on a project that requires me to do simple geometrical transformations (translation, reflection over x and y axis) on some figures drawn on a Java applet. The previous guy working on the applet was drawing the figures from arrays representing the caretesian points for the vertices of each figure. I decided to...

Multi-dimensional plots

I'm trying to visualize a set of multi-dimensional data. It includes columns like timestamp, length, width, height, speed, score, and more. I would like to visualize all of the data in some sort of chart. I like the idea of an intensity plot (http://www.phasespace.com.au/surface%5Fex.htm). I also saw some nice screenshots of R (http:...

Creating a Movie from a Series of Plots in R

Is there an easy way to create a "movie" by stitching together several plots, within R? ...

How to set capabilities of a universe in Java 3d?

How can I set the bounds on a SimpleUniverse instance created with a canvas3d object? I tried the code below, but I get either a "Capability not set exception" if I try to set the bounds and a "Restricted access exception" if I try to set the capability to write bounds. Here's my code: GraphicsConfiguration config = SimpleUniverse.get...

How to set ViewingPlatform and update TransformGroup?

I have a scene inside of a TransformGroup that allows the mouse to zoom/rotate/pan. I need to set the camera position back far enough that I can see the entire scene, which I do with the following code: // Position the position from which the user is viewing the scene ViewingPlatform viewPlatform = universe.getViewingPlatform...

How do I draw simple graphics in C#?

I just want to draw simple 2D objects like circle, line, square etc in C#. How do I do that? Back in the Turbo C++ days I remember initializing some graphics library for doing the same. Do I need to do something similar in .NET? Is it any different for 3D objects? Will things like DirectX make this any easier? Any links to tutorials or s...

FFT for Spectrograms in Python

How would I go about using Python to read the frequency peaks from a WAV PCM file and then be able to generate an image of it, for spectogram analysis? I'm trying to make a program that allows you to read any audio file, converting it to WAV PCM, and then finding the peaks and frequency cutoffs. ...

Crossfading scenes in OpenGL

I would like to render two scenes in OpenGL, and then do a visual crossfade from one scene to the second. Can anyone suggest a starting point for learning how to do this? Cheers ...

How to blend color of two sprites with constant alpha in DirectX?

Essentially, what I want to do (in DirectX) is to take two partially-transparent images and blend them together. This works fine with default blending, insofar as they both show up as overlapping, etc. However, the problem is that the opacity goes up markedly where the two intersect. This causes increasing problems as more sprites ove...