Questions tagged as 'canvas'

2
answers

How to upload image canvas

I get the result of an image through this function this.canvas.toDataURL('png') , this function generates the image normally, the points are: How to upload this to the PHP server using jQuery? Is the correct way to upload? Will not y...
asked by 23.05.2016 / 14:32
1
answer

Button on top of a View with Canvas

I've been trying for some time already to put a Button on top of a View that I'm using with Canvas. I searched in several places (this seems to be a common problem) but I did not find an answer. When I try to run the program below, it gives t...
asked by 22.01.2015 / 21:27
1
answer

Most suitable API - OpenGL ES 2.0 x Canvas x Drawable

Good morning, I would like to make an application for Android to do the following: display the floor of a house on the cell phone, and the user touching a room on the screen, the color of the room change. I'm familiarized with OpenGL ES 2.0...
asked by 18.01.2015 / 13:04
1
answer

Canvas - getWidth (), getHeight () and OnClickListener ()

I'm making an app for Android using the Canvas class, but I'm having some problems. 1st. When you run the methods below, canvas.drawText("Width: " + fotoOriginal.getWidth(), 0, 10, paint); canvas.drawText("Height: " + fotoOriginal.getHeight...
asked by 19.01.2015 / 00:57
1
answer

How to handle addEventListener's click event in javascript

I need to develop a game using HTML 5 and Javascript with the game being within canvas . I created a game opening screen and after clicking play it goes to another screen. I called this event click document.getElementById('canvas')....
asked by 03.06.2014 / 18:53
1
answer

Rotate points belonging to a bezier curve on canvas js

Alright? I would like help with a problem I recently got while working with JS. I need to do a function in JS that can rotate a set of points present in a bezier curve. I've previously researched a way to do this point rotation, but everythin...
asked by 07.12.2018 / 01:34
0
answers

Drawing infinite rectangles on android

I'm trying to draw infinite rectangles on my canvas from a distance, but I can not. It starts well but in the second loop or the rectangle is the size of the screen or they disappear. I wanted three rectangles to appear in each loop. public cl...
asked by 16.11.2018 / 15:47
0
answers

How to detect collision in simple game in html, javascript?

<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Jogo</title> </head> <body> <canvas id="jogo" width="1000" height="600" style="border: #000 solid 1px;"> </c...
asked by 15.10.2018 / 00:53
0
answers

Canvas Facebook

I would like to know if anyone knows how I create the Canvas on the face and put it on my external page, as itau did. link I have already broken my head and could not, can anyone help me?     
asked by 25.09.2018 / 20:04
1
answer

do not delete the image on the canvas

Hello, good morning. I have a still image on the canvas and some buttons to draw or delete what was drawn, but I have a problem: when I use the delete button it deletes everything (including the image) and I would like to delete only what was dr...
asked by 10.09.2018 / 15:27