import java.awt.*;
import java.awt.image.*;
import javax.swing.*;
import java.awt.event.*;
public class MouseAct extends JFrame{
public static void main(String args[]){
MouseAct M= new MouseAct();
M.paint1();
}
public void paint1(){
setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
setSize(640,480); //
show();
...
In my Mac OS X application, I would like to log the user's graphics card driver and model. What is the appropriate API to use?
...
We are trying to develop a real-time display system in safety critical domain. (All this is at very basic stage.) One option I have is to write my own Widgets using OpenGL. Other two options is to use something like GTK or QT.
QT seems easy to use and has good development tools. But I have worked on several applications in real-time dom...
I'm watching the Programming Methodology from Stanford on Youtube and professor uses the GraphicsProgram as a bacis class for the class he creates. I do:
public class Test extends GraphicsProgram {
public static void main(String[] args) {
}
}
But getting the error that GraphicsProgram can't be resolved to a type.
I clicked ctrl+...
Hello,
I am trying to find the intersection of the two lines spanning from corner to corner diagonally( picture below done in MSpaint, I currently don't have access to the real image ). I have figured that tracing them by using the black and white backgrounds would be the easiest, but there are artifacts on the picture( the squiggly lin...
ok i can draw ellipse the problem is this, im trying to draw one ellipse but change its x value to different one. like this i draw one ellipse and the x value is 1 after ten seconds i want it the x value to be 10 but it seems that im creating new ellipse with x value 10. here is my code
while(sd==1)//sd equal 1
{
sf++;//sf equals 1...
I am working with a Microchip dsPIC33FJ128GP802. It's a small DSP-based microcontroller, and it doesn't have much power (40 million instructions per second). I'm looking for a way to render a convex (i.e. simple) polygon. I am only dealing with 2D shapes, integer math, and set or clear pixels (i.e. 1 bit per pixel.) I already have routin...
Hi everybody, i'm trying to understand how I can paint simple graphics in x86 protected mode on Intel chipsets; I already (kind of) know how to do that with VGA interface, and I'm trying to understand how I could use G35 Express to do the same. For this purpose I'm studying this document.
I can't understand what's "graphics memory apert...
I have 2 rectangles they are placed arbitrarily and I have rects all four corner point like
struct Rect
{
NSPoint topLeft;
NSPoint topRight;
NSPoint bottomLeft;
NSPoint bottomRight;
}
I want to check whether 2 rectangles intersects. I am looking a method similar to NSIntersectsRect . But NSIntersectsRectwon't respect the rota...
Consider the following svg snippet:
<linearGradient id="redgradient" x1="0%" x2="0%" y1="0%" y2="100%">
<stop offset="0%" stop-color="#ffffff"/>
<stop offset="100%" stop-color="#ff0000"/>
</linearGradient>
<rect x="0" y="0" width="400" height="400" fill="url(#redgradient)"/>
Is there a way of specifying that the colours should...
Hi,
If you were writing a 2d graphics intensive application in C# (like animation software or a music sequencer with automated graphics control), which one would be a better choice for graphics library?
I'd like to develop a cross-platform application (at least portable on Windows 7, Linux), and I'd like to use only C#, avoiding mixing...
I've run into what originally seemed should be a very simple problem, but have spent many many hours trying to figure out and have gotten nowhere.
I'm working with Apple's GLImageProcessing sample code and have simplified it to display one EAGLView with a UISlider that adjusts the hue of an image. I've modified EAGLView to inherit fro...
So I see graphical models expressed in plate notation in research papers and online all the time (for example: http://www.cs.princeton.edu/~blei/papers/BleiNgJordan2003.pdf).
Is there a quick and easy way to produce these?? I've searched and searched but all I've found are solutions like GraphViz which are really way more powerful than...
It is used to compare the results in many papers and cited as "Akeley, K., P. Haeberli, and D. Burns, tomesh.c, a C-program on the SGI Developer's Toolbox CD, 1990". But where can I find the source code now?
Thanks,
...
Hi,
I am going to be working with a graphic designer to develop an interactive children's iphone app. It will not be a game as such, but rather a series of backgrounds with some interactive objects that can be touched to display simple animation or sound.
These I would be striving for the quality that these guys produce http://duckduck...
The image that should be display:
But actually, it shows like this:
It seems some over lapping, what's happen? thank you.
...
Hi,
I have a requirement where i need to mask and clear the masked portion
of the images.
I am done with masking part of the requirement. I am using color
matrix to mask my image also the selected portion in the image is
blacked out. For this the color matrix setting used is ,
colormatrix obj = new colormatrix (
{ 255,0,0,0,0}
{0,255,...
Hello,
I'm a newbie in iphone development so plz don't mind. I'm trying to draw PNG on my screen using libpng but its just displaying nothing on the screen. The code I'm using is:
// Sets up matrices and transforms for OpenGL ES
glViewport(0, 0, backingWidth, backingHeight);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrthof(0.0f, ...
I'm trying to render a small Bitmap in memory with .NET that needs to be 16 bit Grayscale. The bitmap's format is set to PixelFormat.Format16bppGrayScale. However, Bitmap.SetPixel takes a Color argument. Color in turn takes one byte for each of R, B, and G (and optionally A).
How do I specify a 16-bit gray scale value rather than an ...
I have a C# application which renders 2D graphics into bitmaps using System.Drawing.Graphics.
I now want to port this application to work on normal .net on windows, mono on linux and in Silverlight/Moonlight.
But at least Silverlight is lacking System.Drawing. Since I don't want to maintain several copies of my rendering code I need one...