graphics

How can I find all R packages that include graphics functions?

I always have difficulty in finding all available alternative ways to produce a specific graph, either one that I have already decided to use (looking for different variations) or one that I have not yet thought of. The R Graphical Manual site provides a complete list of samples of R's graphics functions, however it's easier for me to s...

Slow C++ DirectX 2D Game

Hi, I'm new to C++ and DirectX, I come from XNA. I have developed a game like Fly The Copter. What i've done is created a class named Wall. While the game is running I draw all the walls. In XNA I stored the walls in a ArrayList and in C++ I've used vector. In XNA the game just runs fast and in C++ really slow. Here's the C++ code: void...

"Beveled" Shapes with cocos2d

I would like to draw 2d shapes like this in an iPhone app: I asked a similar question here to see if I could do it easily with Quartz, but didn't get a solution. So I got to thinking that I might be able to leverage an exsiting 2d library out there, and then I thought of cocos2d. The goal is to draw these kinds of beveled shapes dyna...

Opengl ES Application works in simulator, but not on phone

Hello, I have created a simlpe Opengl ES application, a sphere bouncing back and forth in a room. When running on simulator it works fine. I have configured the simulator to be HW 3.0, from xCode I chose Simulator - 3.0|Debug. Since I only have a 3G, not 3Gs, I assume this should give the same result? What can the reason be and how th...

How to create an "inkblot" chart with R?

How can I create a chart like http://junkcharts.typepad.com/junk_charts/2010/01/leaving-ink-traces.html where several time series (one per country) are displayed horizontally as symmetric areas? I think if I could display one time series in this way, it is easy to generalize to several using mfrow. Sample data: #Solar energy produ...

How can I generate paths in .png files using C#?

Hi all I need to parse an XML file of coordinates and create a .png (from scratch) in which I draw paths between the coordinates. I also need to be able to smooth the corners when paths change direction (maybe using beziers). How can I do this programmatically in C#? Thanks ...

Byte codes for pixel maps for Ascii characters?

Anyone who ever had to draw text in a graphics application for pre-windows operating systems (i.e. Dos) will know what I'm asking for. Each ASCII character can be represented by an 8x8 pixel matrix. Each matrix can be represented by an 8 byte code (each byte used as a bit mask for each line of the matrix, 1 bit representing a white pixe...

.NET test for bitonal TIFF image without trapping exception?

I am developing a document database application that handles TIFF images. When annotating images, in order for the user-interface to present only black and white as choices for bitonal (Format1bppIndexed) images versus multiple colors for images with a higher color depth I need to test for whether or not a TIFF is bitonal. Here is my f...

Inner shadow in Core Graphics

I want to do something similar to Photoshops inner shadow effect in Core Graphics. If I draw/fill a path with this effect, I want get something similar to the following: ...

Java: create graphics without awt?

Is there any library out there to create graphics without using AWT? What I need is simple drawing functions (like to draw a line) and text drawing functions to create graphics in memory for a Google app engine application. App engine does not support AWT. Thanks! ...

Associating System.Drawing.Graphics with a device context?

Is there a way of attaching a System.Drawing.Graphics class to a device context (HDC) for another window which was retrieved via GetDC API function? It is easier than using GDI+ directly. ...

iPhone new game, help!!!

Hello I'm a programmer that has just recently started programming applications for the iPhone. I want to create a game where the main character goes around a series of room and each of this contains a different minigames. The game is going to be 2D similar to the likes of "Final Fantasy Advance Tactics", Pokemon or Zenonia(for the iPho...

Qt plotting application.

Hi All, Currently I'm trying to develop some simple plot prototype and I'm struggling with some kind of white/empty sheet syndrome. I'm back to Qt after 2 years, so I feel quite retarded. My application should: plot and manage custom layers of data plot on custom canvas background manage markers on plot My plan is to use following...

Moving Rectangle in VB?

It is my understanding and experience that VB.NET does not perform well with moving graphics from point A to point B in a form. How do I draw a rectangle or a line and move it from point A to point B? Is there a reliable way to do this without seeing a black rectangle around the moving object on every frame? I've tried this with bitmap...

Windows Form "Hole"

How would I go about creating a dynamic "hole" in a windows form through which the user could see the actual desktop instead of the form? Right now I've created a translucent form on top of the entire screen and I'm looking to see through that translucent form. ...

Is there a port of prefuse in javascript/flash?

http://prefuse.org/ It's originally written in java,but I want to do it with client script,like javascript/flash. ...

Switching line properties while using NSBezierPath

I'm having some very basic problems changing line color/width when drawing different lines (intended for a chart) with NSBezierPath. The following code should make it clear what I'm trying to do: #import "DrawTest.h" @implementation DrawTest - (id)initWithFrame:(NSRect)frameRect { NSLog(@"in 'initWithFrame'..."); if ((self = [supe...

which tools to use for designing cooliris type applications?

Hi.. I want to utilise the 3dwall feature of cooliris, the physics effects of the icons in bumtop to design an application for making the image viewing more intuitive and interactive. I dont want to use flash as it would slow down the speed for interaction on desktop. PLease could someone tell me about choice of 1.) physics engine - ph...

how to start building cooliris in openGL and C++?

I have seen the post where somebody commented that cooliris can be built using C++ and openGL. I have just started learning openGL. I wanted to ask how to go about creating it? ...

Embedding dendrogram in Java

Hello, I'm looking for a library capable of drawing dendrograms of data in Java (not calculating them, I can do it by myself).. do you have any clues? Already tried to search it over Google but haven't found anything that is not stand-alone (while I need to embed the generation inside my program). Thanks! ...