Questions tagged [graphics]

Graphics are visual presentations. Questions using this tag should also be tagged with the appropriate language and graphics subsystem in use. For more general graphics questions, consider Computer Graphics Stack Exchange (computergraphics.stackexchange.com).

Graphics

The tag should be assigned to questions about constructing, displaying and manipulating visual presentations. Questions should also be tagged with the appropriate language and graphics subsystem in use. For more general graphics questions, consider Computer Graphics Stackexchange.

While historically there were two parallel developments of vector and raster (bitmap) systems, modern systems all implement the raster model at the hardware layer but may use extensive applications of vector graphics techniques at higher levels. The entire chain through the various levels to go from model to picture on screen is known as the pipeline.

The Borland Graphics Interface (graphics.h) has its own tag:

Examples

Construction:

  • How to turn raw data into a bitmap?
  • How to generate a chart, how to draw using vectors?
  • How to load a .3ds file and display the model?

Displaying

  • How to display a large bitmap scaled down?
  • How to use an image as a texture for a control?
  • How to ray-trace voxel data?

Manipulating

  • How to modify images using common effects such as filters?
  • How to create animations?

Counterexamples

  • How to draw using a paint program? --> too basic, not programming related
  • How to take a picture when there is not enough light? --> see Photography
  • How to scan a pencil drawing? --> software tools, see SuperUser
  • What graphics card should I buy? --> shopping questions are off-topic on most SE sites

Resources

Free Graphics Programming Books

20510 questions
6
votes
1 answer

Add shaded area to plotyy in Matlab

I am working on a plot of environmental variables (lines) and the interquartile range for those variables from multiple years (grey shade areas) versus day of year. I'm using Matlab 2014b, and because I am using more than one axis, I'm using…
user2860703
  • 483
  • 5
  • 18
6
votes
2 answers

Animate rotating SVG element on webpage

So I have an SVG file created in Inkscape embedded in a webpage, and I'd like it to rotate slowly. I've tried using Javascript and inserting animation commands directly into the SVG, but nothing works. I don't want to load in an entire JS library…
Zarkonnen
  • 22,200
  • 14
  • 65
  • 81
6
votes
1 answer

Swapping x & y Axis in Matlab

Potentially easy matlab question here, but I've searched and can't sort out how to do this. I've got a variables, which plot like this: I simple want the x axis to be the y axis and vice versa. How do I swap them? Thank you in advance for your…
Laura
  • 93
  • 1
  • 1
  • 7
6
votes
2 answers

Change colour filter of screen to work with multiple monitors

I've made a program to change the colour filter of the screen similar to the way Flux does (the code shown to do this is in the main question from here). However, a couple of my users say it won't affect the other screen/s with two or more monitors.…
Dan W
  • 3,520
  • 7
  • 42
  • 69
6
votes
2 answers

.net Drawing.Graphics.FromImage() returns blank black image

I'm trying to rescale uploaded jpeg in asp.net So I go: Image original = Image.FromStream(myPostedFile.InputStream); int w=original.Width, h=original.Height; using(Graphics g = Graphics.FromImage(original)) { g.ScaleTransform(0.5f, 0.5f); ... //…
joox
  • 243
  • 5
  • 13
6
votes
1 answer

glClear() Takes Too Long - Android OpenGL ES 2

I'm developing an Android app using OpenGL ES 2. The problem I am encountering is that the glClear() function is taking so long to process that the game appears jittery as frames are delayed. The output of a run of the program with timing probes…
Ian
  • 61
  • 3
6
votes
2 answers

JavaFX change the image in an imageView

Basically I have a method to load an Image from database into an imageView and a second method to change the image I'm sucessfully running both methods without getting an exception but after the setImage in changeImage() method what do I need to…
Kylar Stern
  • 77
  • 1
  • 2
  • 8
6
votes
4 answers

Fast Vector rendering library for C or Python

I'm looking for a library like Cairo, just far faster. It has to be a library that works with C or Python. It also would be nice if I could output to PNG, and SVG. I am looking at Qt's arthur, but that's C++, and I'm not a fan. Any…
Sargun Dhillon
  • 1,788
  • 2
  • 18
  • 24
6
votes
5 answers

Automatic tracking algorithm

I'm trying to write a simple tracking routine to track some points on a movie. Essentially I have a series of 100-frames-long movies, showing some bright spots on dark background. I have ~100-150 spots per frame, and they move over the course of the…
nico
  • 50,859
  • 17
  • 87
  • 112
6
votes
1 answer

Plot won't fit in R window

I am using the meta package in R to do a meta-analysis of proportions. I have about a hundred studies in my analysis. When I type forest(result) to create my forest plot, it works, but the graphic is chopped off at the top and bottom. It won't fit…
Alexander
  • 977
  • 1
  • 13
  • 29
6
votes
1 answer

Qt: How to create a clearly visible glow effect for a QLabel? (e.g. using QGraphicsDropShadowEffect)

I am trying to add a glow effect to a QLabel so that it looks like the time display in the following picture: I found out that you can "misuse" a QGraphicsDropShadowEffect for this: QGraphicsDropShadowEffect * dse = new…
manuel
  • 533
  • 6
  • 16
6
votes
1 answer

Create a circle avatar image in .net

I want to create a default avatar image which is a circle with initials in it. I want to do this on the server side as a png. Is this possible using the .net graphics library?
Tija
  • 1,691
  • 4
  • 20
  • 33
6
votes
2 answers

PLY file specifications with texture coordinates

I need to read PLY files (Stanford Triangle Format) with embedded texture for some purpose. I saw several specification of PLY files, but could not find a single source specifying the syntax for texture mapping. There seems to be so many libraries…
krips89
  • 1,683
  • 4
  • 17
  • 32
6
votes
1 answer

How to make custom plot symbols from vector graphics in R

Is there some way how to make custom points in R? I am familiar with pch argument where are many choices, but what if I need to plot for example tree silhouettes? For example if I draw some point as eps. (or similar) file, can I use it in R?.…
Ladislav Naďo
  • 822
  • 12
  • 27
6
votes
1 answer

Adding points to 3d plot in r

I'm beginner with plotting in 3D in R and I need help. I try to plot some easy paraboloid library(rgl) x <- seq(-1,1, 0.2) y <- x f <- function(x,y){ -(x^2+y^2) } z <- outer(x,y, "f") persp3d(x, y, z, col="gray") So, my questions are: Can I…
jjankowiak
  • 3,010
  • 6
  • 28
  • 45