Questions tagged [graphic]
464 questions
7
votes
4 answers
iPhone iOS Generate star, sunburst or polygon UIBezierPath programmatically
I'm looking for a way to programmatically create stars, sunburst, and other "spiky" effects using UIBezierPath.
UIBezierPath *sunbeamsPath = [UIBezierPath bezierPath];
[sunbeamsPath moveToPoint: CGPointMake(x, y)];
Are there any algorithms that…

Alex Stone
- 46,408
- 55
- 231
- 407
6
votes
1 answer
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…

cuteCAT
- 2,251
- 4
- 25
- 30
5
votes
4 answers
GIF to AVI with windows Animate Control
I was trying to convert a GIF image (Ajax waiting like):
to AVI that will be used with TAnimate control (win32 animation control).
I have tried a few tools, but the problem is that the output AVI is either not suitable for the Animation control or…

kobik
- 21,001
- 4
- 61
- 121
5
votes
1 answer
Draw simple graphics using F#
What is the easiest way to draw simple graphics using F# ?
I want to visualize a dynamic system (a simplified sample of my use case would be a red square going from one side of the screen to the other at a speed of one pixel per frame) so I need a…

Nestor Demeure
- 509
- 6
- 11
5
votes
1 answer
Transforming mouse coordinates
Im making a graph program and im stuck at where I need to get mouse coordinates to equal graphic scale. With picturebox I use transform to scale my graphic:
RectangleF world = new RectangleF(wxmin, wymin, wwid, whgt);
PointF[] device_points…

WhizBoy
- 225
- 1
- 10
5
votes
2 answers
How to go about creating a pie-chart like countdown with jQuery?
I'm trying to code something like this -
I'd love to add my coding attempt, only I don't really have a clue. When googling stuff like "jQuery countdown", "pie chart" etc. I find only plugins, where I want to code it myself. I'm not even sure…

Roy
- 1,307
- 1
- 13
- 29
5
votes
2 answers
How to create continuously repeating scrolling background image in Open GL?
I have one image: background.png. How to create continuously repeating scrolling background image with android OpenGL ES or AndEngine library or other technology you know?
Example:
Currently, I use two-adjacent-image technique. I load image…

null
- 8,669
- 16
- 68
- 98
4
votes
2 answers
How to draw BIG thin text in android
I need to draw single character on my view as BIG thin text as shown in image below (text as just simple lines)
But my code below gives me following image (text as shape)
Paint dPaint = new Paint();
dPaint.setAntiAlias(true);
…

Deep
- 5,772
- 2
- 26
- 36
4
votes
2 answers
Right Click menu on a LocatorPane graphic in Mathematica
When graphics are right-clicked in Mathematica you get a context menu (cut graphics, copy graphics, save graphics as,...), but for a LocatorPane Graphic this right click menu is disable.
How can I call a context menu for a LocatorPane graphics with…

Jalil
- 221
- 2
- 8
4
votes
3 answers
histograms and function graphs with java swing
Is there any predefined component in Java Swing that allow to draw histograms or functions graphs?
If there is not. Does anyone know a good open-source library with a license that is not GPL2.0/3.0 ? ( I need any product licensed under…

Heisenbug
- 38,762
- 28
- 132
- 190
4
votes
1 answer
c# Drawing with gdi32.dll vs System.Drawing.Graphics
So I have some code that creates a highlight effect on top of a picture box with gdi32.dll and I am wondering if there is a simpler way to do it with System.Drawing.Graphics? Basically with the gdi32.dll, I have to capture a screen shot after…

David Bentley
- 824
- 1
- 8
- 27
4
votes
2 answers
AffineTransform and flipping the y-axis
i ran into a strange problem when trying to flip the y-axis of a coordinate system that im creating:
private AffineTransform getTransform() {
if (transform == null) {
transform = new AffineTransform();
double…

fasseg
- 17,504
- 8
- 62
- 73
4
votes
2 answers
Matplotlib make several graphics and use the arrow to change - Python
I have a text and I want to make a graphic of the letter-frequency every n sentences. I have this code to make one graphic:
def graphic(dic):
x = list(range(len(dic)))
liste = []
valeur = []
for i in dic:
liste +=…

pioupiou1211
- 353
- 4
- 16
4
votes
1 answer
How to create a layout like in picture in android?
I follow many blogs but didn't get the proper answer. Main problem is to create the circular progress which is showing with the help of some graphics. However not able to move towards success.
Path p = new Path();
p.moveTo(70, 10);
…

Ratna deep verma
- 141
- 1
- 11
4
votes
1 answer
C# Caption image
I am captioning an image, but the corners are too sharp for letters such as M and W.
Is there a method for rounded corners?
Here is my current method. It has long references since I'm using this in WPF and I do not want it to conflict.
public…

John
- 5,942
- 3
- 42
- 79