A tag for questions about methods of displaying graphical data or images.
Questions tagged [draw]
3541 questions
1
vote
1 answer
AS3 lineTo method alternative
This is more of a logical question than just looking for code, although it might be needed.
So i'm creating a drawing application and the first thing to do is use the lineTo method to draw a line -- that's all fine. But I learned this is not what I…

user3418126
- 49
- 6
1
vote
0 answers
Fast bitmap drawing in android's ImageView
I have a class that extends from ImageView (well actually are three classes that extends one from the other, but that's not relevant) to perform some custom drawing around the drawable drawn by the ImageView. Now, my code is fine (or at least I…

Antonio E.
- 4,381
- 2
- 25
- 35
1
vote
2 answers
How to draw a line and drag & resize it?
I want to draw a line (more accurately, an arrow) on a PictureBox control. (not draw a line to image itself)
Then, I want to grab the line, move it and resize it(change it's X,Y,X',Y') by dragging.
How can I do that?
I think, at first, I should draw…

klados
- 706
- 11
- 33
1
vote
3 answers
Should I draw tiles individually, or paste the images of the tiles onto a larger image and draw that?
I'm making a game right now with a friend and we're having a dispute over how to draw the tiles in the game. The game is 2d, top down, with an isometric look. Each tile is either a floor tile (which the player can move on) or a wall tile (which the…

user3448495
- 19
- 1
1
vote
2 answers
Android Zoom is not respond after some time?
I'm developing an application where I'm applying on touch listener to my layout view. I move the layout over screen but that layout doesn't respond well after 10 to 15 secs. Here is my code:
base = (LinearLayout) findViewById(R.id.load);
…

NagarjunaReddy
- 8,621
- 10
- 63
- 98
1
vote
1 answer
Any way to avoid repeatedly loading fonts in JAVA with Graphics2D?
The problem is that the font is constantly loading itself, and I'm wondering if there is a better work around....
I am making a simple java game and I have this code in order to draw all the objects to the frame:
public void paint(Graphics g){
…

user3376241
- 37
- 3
1
vote
0 answers
Android Image Matching
This will be a long question to make clear my point, I hope you can understand it :)
So I am making an app to write letters correctly, and to test if the letter is correctly drawn I use an algorithm that count the pixels and does the math.
The…

TiagoM
- 3,458
- 4
- 42
- 83
1
vote
1 answer
Circle on canvas has rough edges
I want a circle on the canvas in android app.
It can be done either using a bitmap of circle or actually drawing a circle.
I have done both but the circle in later has rough edges.
Why is this happening. And how can i get the Circle as i expect…

user2917687
- 13
- 7
1
vote
1 answer
Drawing a view through animation is very slow because of list view inside it
I am animating a view which has list view inside it through drawing. i.e setting the height from 0 to particular height.when list-view is empty my view draws smoothly.but when list-view is populated my view animates very slowly.
here is my…

hussi
- 77
- 2
- 9
1
vote
1 answer
Java: Draw Lines on a JMF Lightweight_Rendered Player
I've got a problem: I have a JMF-Videoplayer in my application and I want to draw on it (while the video continues). The Problem I've got is that I use a JLayeredPane where I add the VideoPlayer-Control on Layer.Content_Layer(index 0) and a JPanel…

Gambrinus
- 2,140
- 16
- 26
1
vote
1 answer
Android : How to Draw multiple images inside the same imageview but shifted in the y coordinate?
In my android application I have a horizontal list view and a vertical one. The vertical view contains images. When any of the images is touched, it must go to the horizontal view, but every 3 of them must be drawn over each other in the same image…

user3419526
- 13
- 1
- 4
1
vote
0 answers
Android Continuous line with out user Interaction?
HI All any one have idea of continuous line display with out user interaction in Surface view. i have idea of draw line using finger draw, but i want continuous line with random values.
Any one have idea of this.any Applications and links all are…

NagarjunaReddy
- 8,621
- 10
- 63
- 98
1
vote
1 answer
Can you draw Area objects with Graphics g?
I am trying to implement a collision detection system between different objects. I got the idea of using Area for the purpose of collision detection from this question.
This isn't quite working on my program like it did in the answer and I am…

leigero
- 3,233
- 12
- 42
- 63
1
vote
2 answers
LibGdx: most efficient way to draw a checkerboard in background
I am building a game with libgdx.
The game screen is a grid with Scene2D actors. Actors are displayed on the front.
I would like to draw a background that looks like a checkerboard, coloring every 2 cells with one color and the other cells with…

Don
- 977
- 3
- 10
- 28
1
vote
1 answer
Trouble drawing star with an even number of points with turtle in Java
Alright, so this is for an assignment, and I have it so close to figured out. Basically, we were given the code to create a turtle and the test client draws a polygon with n sides. The instructions are to modify the test client so that it draws a…
user3340067