graphics

Load and save bitmaps using dotnet

This may be simple one, but 5 mins of Googling didn't give me the answer. How do you save and load bitmaps using .Net librabries? I have an Image object and I need to save it to disk in some format (preferably png) and load back in later. A C# example would be great. ...

Techniques for dynamic (algorithmic) graphics

I'm programming an application for a 32 bit processor with limited memory (512k flash, 32k RAM). The display on this device is 128x160 with 16 bit color, which would normally consume 40k ram if I were to buffer it on my processor. I don't have that much RAM, so I'm looking for techniques, tips, tricks, ideas for generating screen data ...

Draw shapes or images on a curved path

I am looking for a drawing library or code examples to draw images or vector shapes repeated along a path which could be curved. I found a cocoa library which is what I am looking for http://apptree.net/drawkitmain.htm but for .NET. ...

Java: AWT on Solaris

How is AWT implemented for Solaris? ie: What native libraries, if any, is it dependent on. ...

What's the best version control system for handling projects with graphics?

I'm part of a small team (usually just two people), I handle the code, he handles the graphic design. In the past I've used CVS to handle version control of the code files, and while we've included the graphics in the repository, he hasn't derived nearly as much value from it as I have. Are there other packages that provide the bette...

Linear algebra for graphics in C

I'm developing software that writes to a tiny LCD screen (less than 1" x 1"). I've got all the usual suspects - lines, filled polygons, fonts, etc. I remember, however, learning how to do fun vector manipulation in linear algebra many moons ago, and creating rotating wireframe objects. I'd like to do that again, but figured there must...

Simple 3D graphics project?

I'm looking for some good ideas for a simple 3d graphics program as my final project for an intro to computer graphics class. As for some background information, we'll be using opengl and will have a little over a month to work on it, so nothing too far-fetched. The simpler and "prettier" looking, the better. It does, however, require...

Getting drawable area of an AWT frame in Mac OS X?

I have subclassed java.awt.Frame and have overridden the paint() method as I wish to draw the entire contents of the window manually. However, on the graphics object, (0,0) corresponds to the upper left hand corner of the window inside the title bar decoration, not the first drawable pixel. Can I determine the co-ordinate of the first ...

HCI: UI beyond the WIMP Paradigm

With the popularity of the Apple iPhone, the potential of the Microsoft Surface, and the sheer fluidity and innovation of the interfaces pioneered by Jeff Han of Perceptive Pixel ... What are good examples of Graphical User Interfaces which have evolved beyond the Windows, Icons, ( Mouse / Menu ), and Pointer paradigm ? ...

Is it possible to do a kind of Link / Button style using CSS with special effects like shadows, outlining of text, and/or gradient?

Hey, Is it possible to make such buttons (http://img225.imageshack.us/img225/6452/buttonslw9.jpg) using CSS? It should be Menu, and PHP would just feed the text to html/css and css should take care of the design. Maybe I want too much out of CSS - especially with that red outline of the text.. ? Any ideas how i can achieve such result...

Suggestions for an easy to use imagemanipulation library in Delphi?

I would like my app customers to open an image and be able to crop, rotate, resize antialiazed, lighten, darken, add an alphachannel and to be a little advanced have an autolevels routine. I have somewhat found code/liraries to do most of this functions, but they all seemes to be very hard to use or pretty bloatet with functionality i d...

Change a Window background color, given a IntPtr handle

In c#, I have a handle to a window ( an IntPtr ), I want to change the background color of that window. How can I do this? I can get the GDI graphics object for that handle like so: Graphics graphics = Graphics.FromHwnd(theHandle); So I should somehow be able to change the background color from this? I also want to ensure the backgr...

Have you had success with 2D graphics via HTML canvas?

I'm looking for success and failure stories of web applications rendering rich, 2D graphics via the HTML canvas element. I've seen some intriguing examples online but wanted to learn about some real-world, practical examples of development done using this approach. ...

ImageMagick Reflection

Brief: convert ( -size 585x128 gradient: ) NewImage.png How do I change the above ImageMagick command so it takes the width and height from an existing image? I need it to remain a one line command. Details: I'm trying to programatically create an image reflection using ImageMagick. The effect I am looking for is similar to what ...

How would you go about implementing the game reversi? (othello)

I have been thinking about starting a side project at home to exercise my brain a bit. Reversi looks like a simply game, where mobility has a profound effect on game play. It is at least a step up from tic tac toe. This would be a single player against an AI of some sort. I am thinking to try this in C++ on a PC. What issues am I l...

.NET's equivalent of Java's MemoryImageSource

I found a wonderful open source Java program that I'm translating into C#. The built-in translator in Visual Studio got me started and I've now spent about a month translating the rest manually line by line. I've completed over 15,000 lines of translation and the only thing that remains is trying to figure out how to convert their Memory...

Programming a user interface for a small device

I'm looking for ideas/elements of a user interface for a device I'm making. Full description (and video of development setup) here. In short: It's essentially a direction finder, so I'm starting off thinking, "Compass" but wondering what other design patterns would fit There isn't much interface to a compass - what kinds of input, ot...

Good image gallery engines

What are the best open source image gallery engines? Both stand-alone, and for existing frameworks such as Wordpress or Drupal. Hopefully we can build a good list here over time. ...

Algorithm for unique find edges from polygon mesh

I'm looking for a good algorithm that can give me the unique edges from a set of polygon data. In this case, the polygons are defined by two arrays. One array is the number of points per polygon, and the other array is a list of vertex indices. I have a version that is working, but performance gets slow when reaching over 500,000 polys....

Best API for simple 2d graphics with Java

I'm not sure what the best api for simple 2d graphics with Java is. I know java.awt.Graphics2D was the standard but has it been replaced? Swing is the new api for java GUI apps but it seems a bit heavy for what I want. What I really want is something like the C SDL(http://libsdl.org/) library. ...