graphics

How to Draw some sample images on the iPhone?

I just want draw some simples circle on the iPhone, I think it is too complex to using openGL doing this sample job, but I find that the UIB don't have something like canvas, any suggestion on drawing sample images on iPhone? thx a lot. ...

How to draw paths specified in terms of straight and curved motion.

I have information on paths I would like to draw. The information consists of a sequence of straight sections and curves. For straight sections, I have only the length. For curves, I have the radius, direction and angle. Basically, I have a turtle that can move straight or move in a circular arc from the current position (after which mov...

How do I split an image for use in a web page?

I have an image (source file in Paint.NET format) and it has two areas that need to be click-able when on the web. I've never done anything like this (I usually don't do very graphical sites). Is there an easy way to cut this image up and put it into a web layout? ...

Drawing a hierarchical tree: treemapping

Hello, I'm trying to develop a view of a hierarchical tree in which the weight of each node is the actual number of children it has. A leaf node has weight 1. I want to arrange these items in a way they can be browsed going deeper into the tree by showing the root categories (with no parent) at the beginning. Clicking on a node makes t...

do i need "Java Advanced Imaging API" to learn "image processing" in Java

hello everybody. do i need "Java Advanced Imaging API" to learn "image processing" in Java? and is there any good link for learning "image processing" in java? ...

"InvalidOperationException: Object currently in use" depending on control type

If I have the below code, everything will work - no exceptions. _imgOutput.Bitmap = _irViewAreaBitmap; ibxOutput.Image = _imgOutput; If instead of the above I did this (with everything else the same): pictureBox1.Image = _irViewAreaBitmap; I get an "InvalidOperationException: Object currently ...". I am confused because I would t...

Tool which will generate x,y coordinates (from a simple drawing)

Following on from this question (thanks for all the help): What web technology to opt for to offer interactive colouring? I guess I need a tool (maybe online) which will generate x,y coordinates (representing polygons) from a simple line drawing. I have looked online but the result comes up most is VectorMagic. Which spits out a text ...

Delphi 2010 accessing to frames inside a TIFF

Hello, I just tested I can access to TIFF images in Delphi 2010 with the classic image1.Picture.LoadFromFile(MyTiffFile); Simply using this line of code I can load the first frame of a TIFF file into a TImage component. But when a TIFF file is a multiframe one. How can I get the rest of images contained in a TIFF file? ...

I am having trouble with every Android graphics/SurfaceView tutorial.

Hello, I'm trying to learn how to make video games on Android, and therefore I'm needing to get some decent tutorials going on how to make graphics on Anroid using the SurfaceView object. However every single graphics tutorial I've tried (mainly SurfaceView stuff) has failed. Please note that I don't want to use XML, as it is out of my...

Finding the bounding box (axially aligned) of a parametric range of a 3D NURBS surface

I'll apologize in advance in case this is obvious; I've been unable to find the right terms to put into Google. What I want to do is to find a bounding volume (AABB is good enough) for an arbitrary parametric range over a trimmed NURBS surface. For instance, (u,v) between (0.1,0.2) and (0.4,0.6). EDIT: If it helps, it would be fine f...

How to use Java and NetBeans to display data as an image

I am new to Java and NetBeans but have experience in C/C++. I will be working on an application which will have an area to display an image. The image will be created in memory as an array of unsigned bytes and considered to be monochrome. I'm looking for a tutorial or examples of displaying data like this as an image. (The data wi...

How to move a bitmap object around a screen, and have multiple objects using the same bitmap

See above. I need to move my bitmaps around a Form, or perhaps inside a PictureBox in a form. I have not been able to find any tutorials on this specific subject, and even the base GDI+ stuff is a bit confusing. I am looking for a simple and THOROUGHLY explained way on how to do this. I am needing this for a rendering engine for an 8-b...

generating a 3d graphics c++

Hello, I have found an interesting application on the net and i am using it for my end year study project. http://www.cl.cam.ac.uk/~sjeh3/wii/ the video in the link explains my goal. But i am having issue using it. the example of rendering the trajectory on a 3d axis is using Corba (omniorb) and i believe open inventor. but there isn't ...

Effect To Show Panel in C#.net

Hi All I Want Use a Panel in a Windows Form in C#.net. I Set Visible Property of this Control to false And When I Click on a Button, Panel is showed. I Want Show a Panel by some Effect. Please Help me for this ...

Flash lineStyle rounds thickness?

The sprite which contains all element in my game world uses the real-world meter as distance unit, it doesn't know what pixels are. I then apply a scale to this sprite to make it appear correct on screen. Currently I use 1 meter = 100 pixels, so scale = 100. If I try to draw a line inside this sprite it appears lineStyle(thinkness) roun...

C# / Silverlight / WPF / Fast rendering lots of circles

I want to render a lot of circles or small graphics within either silverlight or wpf (around 1000-10000) as fast and as frequently as possible. If I have to go to DX or OGL, that's fine, but I'm wondering about doing this within either of those two frameworks first (read: it's OK if an answer is WPF-only or Silverlight-only). Also, if ...

GWT Graphics - resetting the text

Hi, I am working on a project for which i am using GWT-Graphics. I have drawing Area containing ellipse and text. When i double click on them a pop-up menu appears and gives an option to enter text. Now when i save this text i want it to appear on this drawing area in the place of the previous text. I am trying to do this but with no l...

How would a 'fading touch trail' effect be implemented on the iPhone?

I'm wondering about how you would implement an effect similar to this one implemented in flash. It would just be a black screen which, when the user touches and drags over it, produces an effect similar to the one seen in the flash movie. What is this effect called? Do you have a better example? One of my biggest problems is articulatin...

Extracting rgb color components from integer value

Hi, if there is an integer value, eg. 86 then how can i extraact the r,g,b components from this integer value....? I am working on Visual C++ 2008 express edition. Thanks.. ...

svgalib : cant see anything

Hello, I had compiled some examples from svgalib, the console show : Using EGA driver svglib 1.4.3 Nothing more, its like its drawing somewhere but I cannot see it. This could be a ver very noob question about svgalib, but also a configuration problem. Also I check the virtual console that it says is drawing (if I run from X), runni...