graphic

Graphic Compatibility with Microsoft .NET

I have created a small application using Microsoft .NET. I don't have problems with MS .NET versions, the problem is with the 2.0 version itself. It's a graphic problem. The application doesn't show the same user interface on two different Windows XP. One with a classic style and the other is XP style. Also this doesn't show the same un...

Graphic Adapter problem in Assembly with vista

When I want to switch to GA in Assembly with Vista it gives me a fatal error and it simply says "I don't support 16bit GA". What should I Do? ...

Creating new image from cropped image

I'm currently trying to crop an image, and then save the new image. I have the original image, the x and y co-ordinates of where on that image I want the cropping to being, and the width and height of the new cropped image. Here is my code: Bitmap originalBitmap = new Bitmap(filePath); Bitmap newImage = new Bitmap(width, height); Graph...

How to write a 3D graphics engine which can be used in JavaScript?

I have recently focused on drawing some cool shapes in a HTML 5.0 canvas. And I want to write a 3D graphics engine which can be used in JavaScript. I have already finished a rotating cube. And I want to finish the shapes like this example: http://gyu.que.jp/jscloth/touch.html. Who have ever tried in this field ? Let us learn from each o...

Arched Relationship Infographic In Python

This is a very specific inforgraphic challange altough the fundemental question is how do you build archs between words using matplotlib, cario or an other python libary. Given a the following data structure. me, you, 7 | me, apple, 9 | apple, you, 1 | bike, me, 5 Names would be displayed horizontally the names with the most relation...

how to use SDL in linux?

The linux server at my school is just a bare-bone server, no x-windows, just a command line interface. I tried to make a graphical c program on that server but found much difficulties. I use SDL library but every time compiling with gcc, it complains: testcursor.c:(.text+0x1ad): undefined reference to SDL_Init' testcursor.c:(.text+0x...

Flood fill algorithm

Hi, im working in a simple graphical library in C with turbo C++ because im developing a very primitive version of a paint style program, everyting works well but i can´t get the flood fill algorithm to work. Im using the 4 way flood fill algorithm, first i tried with the recursive version but it only work with small areas, filling large...

Graphic & Audio Tool for iPhone Dev

In my iPhone app I have to include graphic & audio. Does it exist any tool for creating simple cartoon-style sprite and/or background audio loop? Thanks! ...

Opengl Window with mouse control for win 32

Hi, I am new to OpenGl, almost new to C++. I am looking for some code that does the following things. Open an OpenGL window (maybe using glut) Rotate the view point when the user press the left mouse button zoom when the user press the right mouse button translate the point of view the user press the central button Basically what ...

How to display tree hierarchy in Java?

I have a table in a database named "Process" This process table has 3 fields: process_id process_name process_parent_id Now I want to display this parent child hierarchy in Graphical format. So could you please suggest me the following: Q1. Which data structure would be better to use so as to get data from the database and store in...

ImageMagick vs. Cairo on Vector Graphics rasterization

I am working on a project that needs rasterizing of drawings into image files. I have already got it work using GDI+. Wanting to create a portable solution, I am also looking into other solutions and found two - cairo and imagemagick. I am new to both, but it seems that ImageMagick can do almost all the stuff - drawing lines, arcs, circl...

Changing Graphic Instance using ActionScript

Hi, I was wondering if it is at all possible to change the "Graphic" used in a frame dynamically using actionscript. I was hoping to either change the image the Graphic is an instance of or change the Graphic I am using in the current frame. Cheers Addition: Could I have a layer for each Graphic and then using action script choose wh...

NES Programming - Nametables?

Hello everyone, I'm wondering about how the NES displays its graphical muscle. I've researched stuff online and read through it, but I'm wondering about one last thing: Nametables. Basically, from what I've read, each 8x8 block in a NES nametable points to a location in the pattern table, which holds graphic memory. In addition, the ...

picturebox properties in VS2008 using c#?

hello i have three bmp files one is static while other two are dynamically changing by a graphic object i have two threads for this purpose to update that two bmp files the problem is i want to display the static bmp as it is every time and the dynamic bmps updated every time may ma XOR a good solution but i don't know how to do this eff...

MFC - I want to add transparency and shading to the background of my Application but don't know how..

Dear All, I would like to add transparency and shading to my application written using MFC and Visual Studio 2008 Prof. At the moment I am using Ribbons which makes the app look good but the mainframe (is a CFormView based app) is terrible! I hate the grey background color and the blue titles on the groupboxes. Even changing the colors ...

how to write html on image using gd library php?

im using IMAGETTFTEXT function in php for writing text on some images.now i want to write html tags on my image,for example IMG tag. i dont know how to do that!i want help plz. here is my code : $font_file = 'times.ttf'; $font_size=15; $image_file= 'new.jpg'; $image = imagecreatefromjpeg($image_file); $font_color = imagec...

How do I get the value (float) for RG & B of a UIColor object?

Hello, I have created a UIColor object and want to set the colors before drawing using CGContextSetRGBStrokeColor. In order to do that I need to extract the values of red, green and blue from the UIColor object. How do I do that? Or is there perhaps a better way defining the color using some other kind of methods (couldn't find when ...

possible to concatenate a word with DIFFERENT font in dynamic text field? AS3/Flash

I have a submit button that I'm pulling in from XML. It needs to be XML because it is translated. Therefore... the length is varying depending on the language. I simply want to add an arrow to the end of the word using Webdings #4 (it looks like a solid arrow, not like > but solid)... Is this the best way to do this? What are my opti...

Maya MEL script to create implicit surfaces

I am trying to write a MEL script that will draw simple implicit surfaces in Maya. I have had a search online but could not find that much on the topic. Does anyone know how to create a MEL script to draw a simple implicit surface in Maya? Thanks in advance. ...

Java Graphics 2D UI Arrow Head Direction

I want to draw an arrow using Graphic fillpolygon. But my arrow head is in a reverse side. Any idea? int xpoints[] = { 20, 30, 30, 35, 25, 15, 20 }; int ypoints[] = { 10, 10, 30, 30, 45, 30, 30 }; int npoints = 7; g2D.fillPolygon(xpoints, ypoints, npoints); ...