Questions tagged as 'canvas'

1
answer

Get POST variable in php and AJAX in the same form, PHP SELF

Hi, I have this problem, I have a canvas which serves as a signature for documents that are sent to the same form where you are with phpself , but at the time of doing the conversion in ajax to send it as string of image , nothing brings...
asked by 07.02.2017 / 16:54
1
answer

I want that the image inserted in the canvas does not cross the edges but that these are its limits

var x= 220, y= 730; function lienzo(){ var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); var img = document.getElementById("ima"); ctx.clearRect(0,0,c...
asked by 27.12.2018 / 21:32
1
answer

Change color to the figure does not take it, canvas

As you can see, I take the color but it does not apply to the figure itself, if you can lend me a hand I would appreciate it. I leave the code below. $(function() { let miLienzo = document.getElementById("myCanvas"); let lapi...
asked by 04.11.2018 / 01:03
1
answer

Change color to an item in the Canvas

What happens is that I am implementing an animation to simulate the effect of water in a circle, for this I am using a Js that I found online called "waterwave", but I can not change the color of the black background, try to several ways and the...
asked by 10.10.2018 / 20:25
1
answer

Canvas full screen

I have a problem wanting to make the canvas full screen, the problem is that I want to do it without scale transformations css, I want to do it from css and js with defined sizes function autoScale(id) { var d = document, E, iw = window.innerW...
asked by 06.09.2018 / 20:54
1
answer

Assign values to the attributes (css) of an image for a canvas

I have an object that has a method that creates a img element within a canvas, the problem is that I could not give it " style ", I was working with a div in instead of a canvas and had no problems. I load the image well, just with...
asked by 19.07.2018 / 17:45
1
answer

Make capture with html2canvas and save it on a server

I see that with this library we can print the resulting image somewhere in the DOM or even download it, but is there any way to store it on a server? Thank you very much!     
asked by 14.06.2018 / 23:03
1
answer

How to load a background image in a Java Canvas

Hello! I need to upload the next image in a Canvas that I'm using This is the code which is loading the canvas public JFrameJuegoBase() { initComponents(); canvas = new CanvasDibujable(); canvas.setBounds(30,...
asked by 11.04.2018 / 02:23
1
answer

Graphics with canvasJS does not show - jQuery

I'm trying to run this example: link Without having results: But if you bring data with the console.log(result) of my Ajax [{"Total":"2","fecha":"2017-11-20"},{"Total":"3","fecha":"2017-11-21"},{"Total":"3","fecha":"201...
asked by 23.11.2017 / 20:24
2
answers

How to delete in android studio something drawn on the canvas

I would like to know if you can delete something drawn on the canvas. In this example I have 2 circles, circle 1 can move while circle2 is static. I would like that when the circles collide the circle2 disappears. Is it possible to do that? T...
asked by 16.07.2017 / 02:51