In c# I am using a PictureBox on a win form.
I am trying to recreate MSPaint to learn about the Graphics Object. It all works fine and dandy except that when another window is on on top of the PictureBox, or the entire form is resized, what is drawn under the other window in there is removed.
Here is a scaled down version of the code...
I've got a graphics application that appears to have funky behavior with certain combinations of video cards and drivers. I would like to capture in the application the version number of the video card driver to help with debugging. Is there an easy way to do this?
...
I'm sure I'm doing something stupid here but can someone explain why jpgraph is adding two series values together? I'm specifically talking about the values $a1[3] and $a2[3] as well as $a1[10] and $a2[10] being added together. You can see the graphs here and the code is pasted below:
<?php
require_once ('src/jpgraph.php');
require_on...
I am building a shared whiteboard and I cannot get the shared whiteboard to be shared. I have successfully created a shared method and I see the shared object in the Admin Console that it is there and connected but can't see the drawing on a different browser. I am posting the entire actionscript code. Please help me if you can. Will be ...
So here's the situation: I need to take a (user-specified) graphic, and allow the user to define and label regions within that graphic. For example, if you uploaded a picture of a face, you might want to define "right eye", "left eye", "nose" etc. Also, having defined the regions, if I select a previously defined region, it should be h...
In my XNA game, I program and design the entire thing for 1920x1080 resolution and then scale scale and letterbox to fit the running system (XBox or PC).
This has been a great solution as it allows me to only ever worry about one resolution.
However, I'm now wondering if this will come back to bite me in the future as the game becomes ...
In XNA, when calling Content.Load() to load in a resource, if you load the same resource into multiple objects (i.e. the texture for a projectile of which there can be many) are you getting a copy for each object, or is the system just internally referencing the same memory for each one?
I was realizing that having a separate Texture2D ...
I know how to setup and display an oval shape. I know how to apply a gradient to this shape. What I cant figure out is how I can get an oval gradient to match the shape.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval" >
<gradient
android:st...
OK. I'm tired of googling and reading throught lots of documentation with no results.
My aim is simple: get pyglet to draw an image pixel by pixel.
I've been searching for hours with no results. Can anyone give an example of a short program that draws in a display specifying the color pixel by pixel? (for example, drawing a gradient fro...
I'm drawing 2D, concave, sometimes multicontoured, sometimes self intersecting polygons with OpenGL.
Here is a sample:
Right now, I take the points which if connected would result in the polygon's outline. Then I put these into the GLUTesselator where triangles come out. I then make texture coordinates and texture the polygon.
The abs...
Just a general question really?
Let's say I am making a game and have made a character model in Blender. How would I use this model in Java?
Would I import it somehow?
Thanks.
...
Having spent a bunch of time recently doing 2D work that involves pixel manipulation of bitmaps and blending/compositing, I've run up against the limits of my own understanding with respect to colorspaces, non-RGB color worlds, etc.
I'd like to go back to basics and learn how all this stuff actually works, so that I'm not shooting in th...
I'm writing a 2d tile-based engine. Currently, my drawing routine uses the C# Drawing library to redraw every visible tile every time the screen refreshes. I got scrolling and zooming to work, and everything looks the way I want it to. But the routine is slow. Now I'm trying to improve it. I've a couple of questions:
First, I think redr...
Hello All,
Which graphics library is best for developing GUI for character LCD or simple graphics LCD for embedded linux. ? which has better performance and support ?
Thanks,
Neel
...
Please note I haven't tested this on a Windows-machine only on a Mac-machine. I'm not so sure whether this also occurs on a Windows-machine...
When I resize my Java-application the content is invisible. I already found a way to fix it after resizing it, but not while the user is resizing the window.
I'm not using Swing or something bec...
Hello, I have two indexed (8-bits) Bitamp, both using the same Palette in C# (.NET Framework 2.0). I want to bit block copy pixels from one onto another on designated coordinates. I had tried to use Graphics class, but get exception that it doesn't work with indexed colors, I tried also with getpixel()/setpixel() but get the same excepti...
I have a C# program that uses a production grammar to generate 3D models of trees and flowers and similar organic entities (see wikipedia entry for more info on L-Systems) - when I'm generating a large tree with leaves, I (expectedly) get exponential growth in the string that would go up to 100's of gigs if I'd let it (and I'd like to)....
Is there any means to interpret Direct3D output as a series of vectors instead of a raster image? I am hoping I could use such a feature to generate a PDF file containing the rendered Direct3D output. Am I being too optimistic?
...
This is more of an offbeat question I guess but I am curious as to what graphic designers do to make flat images like in Paper Mario, Limbo or Shank so sharp. The extent of my knowledge goes into an intermediate level of Maya and some sprite creation in photoshop but I never understood the process through which they create such visuals. ...
I have a SurfaceView that is being used to draw images, and I would like to overlay them onto a live-feed from the phone's camera.
Currently, the SurfaceView that contains the images have a white-background, but if I were to overlay them onto the phone's camera feed, they would have to be transparent. The camera and animation drawing ca...