graphics

The Definitive Image Gallery Engine / Plugin Guide

I want to get a good list of image gallery engines of all flavours: Stand alone, plugins for Wordpress or Rails, AJAX, no AJAX, using simple folders or a database on the server. Please state what is needed (eg MySQL and Django) to run each item if possible. Thanks! [I asked a similar question a while back but had limited responses. Hop...

How to stop Flex / AIR XOR-ing a fill?

If you try the following code: g.beginFill(0xFF0000); g.drawRect(0, 0, 50, 50); g.drawRect(25, 25, 50, 50); g.endFill(); You would think that it would draw 2 overlapping red squares. However, it doesn't - it draws two red squares except for the overlapping area which is now completely transparent. Any idea how to get around this? Po...

Creating nice animations with low framerate

Ok, this might sound like a stupid question but i want to know if there is any recommendations on how to animate objects as smoothly and quickly as possible when you know you will have low framerate. What my animation does is that i move approximately 10 2d-rectangles(containing a texture each) about 500 pixels in both x and y and i als...

Smooth animations using Win32 API - without controlling the message pump

Hi everyone ! I'm currently trying to integrate some animation drawing code of mine into a third party application, under the form of an external plugin. This animation code in realtime 3d, based on OpenGL, and is supposed to render as fast as it can, usually at 60 frames per second. In my base application, where I'm the king of the w...

graphics: best performance with floating point accumulation images

Hello stackoverflow, I need to speed up some particle system eye candy I'm working on. The eye candy involves additive blending, accumulation, and trails and glow on the particles. At the moment I'm rendering by hand into a floating point image buffer, converting to unsigned chars at the last minute then uploading to an OpenGL texture. ...

Button text disappearing with 4Gb Ram and IBM Java 1.5

We have a very strange error occurring at a developer site which we are unable to replicate ourselves. A developer in Poland has recently upgraded his Windows XP Service Pack 3 machine to 4Gb of Ram When he did so he started experiencing graphical errors in java programs using IBM JDK 1.5 This errors only occur in IBM JDK 1.5 and not in...

How can I render reflections in OpenGL ES on the iPhone without a stencil buffer?

I'm looking for an alternative technique for rendering reflections in OpenGL ES on the iPhone. Usually I would do this by using the stencil buffer to mark where the reflection can be seen (the reflective surface) and then render the reversed image only in those pixels. Thus when the reflected object moves off the surface its reflection...

Where can I find a simple graphics C library for writing directly onto a frame?

I need a simple graphics C library to use on a device where I will be writing directly to the frame. The frame is located in regular memory. There is no graphics acceleration hardware. Nothing fancy. I just want to be able to draw lines, circles, OSD stuff like strings as well. It would be nice to have functions that use good, lean a...

How to copy one Graphics Object into another

I am trying to copy the contents of one graphics object to another, but the only was i have been able to find is based on using GDI32.DLL, which i would rather avoid using if possible. Does anyone know how/if this is possible using managed code? I dont mind if answers are in C# or VB.Net. Here is waht i currently have: Private Sub Co...

What is a pixel (px) in CSS?

I am reading an ASP.NET book and it refers to CSS files and talks about pixels. But I never understood it from a resolution, layout, etc. point of view. For example, what does the following mean in CSS file definition? #header { padding: 0px; margin: 0px; } ...

Reading monochrome bitmap pixel colors

I don't know a better title, but I'll describe the problem. A piece of hardware we use has the ability to display images. It can display a black and white image with a resolution of 64 x 256. The problem is the format of the image we have to send to the device. It is not a standard bitmap format, but instead it is simply an array of by...

Could "content" of AttributedString can be saved in file ?

I am doing some research on how to "draw" some attributed text on Graphics2D. So, i am interested is it possible to save content of AttributedString in some format ? I know it could be Java serialized, but, i don't need that solution here. Also, if somebody knows some example which shows how to edit AttributedString ? Here is some Ja...

What's the best way of dealing with AWT Graphics contexts?

Some users of our Swing application have reported weird artefacts appearing on the display. This ranges from components not repainting themselves properly for a second or two, right upto whole portions of the application being repainted like tiled wallpaper over areas of the window. The app has been worked on by developers of all levels...

What's the relationship between WIC and GDI+?

I'm fuzzy on the relationship between Windows Imaging Component (WIC) and GDI+. I've done some work in the past that showed that, for example, WIC produces visually superior GIF encodings, but I'm surprised I don't see more people using it for image processing vs. GDI+. I know it doesn't have GDI+'s draw operations, but for encoding/de...

Programming graphics in assembler?

I've developed a running Super Mario Sprite using Visual C++ 6.0 and DirectX. But this isn't very satisfying to me (raping a 3D-Multimedia-framework for displaying a 2D sprite only), so I would like to be able to program an animated sprite using C and assembler only. So, when looking to old games (Wolfenstein, for example) it looks that...

C# Threads and this.Invalidate()

Hi! I'm developing a Windows Mobile app (Compact Framework 2.0 SP1) and this code it's generating me an error: public Image Imagen { get { return imagen; } set { imagen = value; this.Invalidate(); }...

Graphic algorithm Unions, intersect, subtract

I need a good source for reading up on how to create a algorithm to take two polylines (a path comprised of many lines) and performing a union, subtraction, or intersection between them. This is tied to a custom API so I need to understand the underlying algorithm. Plus any sources in a VB dialect would be doubly helpful. ...

How to render animation or effects using Core Graphics

I want to draw a projectile of a cannon moving and explosive effects (just simple broken bits flying around). How should I approach this using Core Graphics (on iPhone)? I am using an NSTimer to call a render method and update the animated projectile or explosive effects and I have no problem drawing each individual pieces (such as fil...

Bouncing Ball in Java

This is probably a really basic problem but I can't seem to find any other articles on it. Anyway, I have written a small bouncing ball program in Java to try and expand my basic skills. The program is just a simple bouncing ball that will drop and hopefully bounce for a while. The original program worked fine but now I have tried to ad...

Looking for MsPaint alternative with alpha support

In our codebase I write many things that, for testing, depends on the image Im loading have alpha. Usually, I make all my own testimages/programmers-art in MsPaint. But every time I need an image with alpha, I have to go and disturb one of our artists. (Or start the loading of GIMP and go for a coffee break.) So Im looking for alternati...