Questions tagged as 'canvas'

0
answers

How to make a polygonal crop responsive

I have a big problem I have irregular images I need to trim them and save them to another file, so far so good, the problem is that the system I'm creating is totally responsive, and the script below delimits the image size, is cutting, saving e...
asked by 18.01.2018 / 14:20
0
answers

How to draw an OBB in Javascript?

I'm having a hard time drawing an OBB. Here is the code: window.onload = function() { var canvas = document.getElementById("canvas"), context = canvas.getContext("2d"), width = canvas.width = window.innerWidth, height = canvas.h...
asked by 12.12.2017 / 15:02
0
answers

img inside div does not appear when used canvas2image

I'm using a script to save a div in png. Within this div has one, but this image does not appear in the final result after saving. The code I'm using is this $(function() { $("#btnSave").click(function() { html2canvas($(".container-assin...
asked by 06.11.2017 / 19:25
1
answer

Mapping an image using Google's Areas and Coordinates.Cloud.Vision.Api

Hello, friends! I'm trying to map an image, using the html5 "Area" tag that works with polygons, I want to map a rectangle or several rectangles over an "img" image. My question is, do I have a mapping that I can not find or coordinate in...
asked by 01.10.2017 / 19:51
1
answer

Painting on canvas

I have this code below in HTML, CSS and JavaScript, and I'm using a JavaScript library called Three.js. I'm having a problem inserting into code. This code makes paintings in plans and I needed to put a checkbox in HTML so that when activ...
asked by 30.06.2017 / 17:11
1
answer

Remove input box from canvas

I'm trying to make a text tool from a drawing application with an input box, using the CanvasInput bookstore. I can apply the text I write to the canvas by clicking enter , but I'm not able to remove the input box from there after applying...
asked by 14.06.2017 / 16:22
1
answer

Chartjs rotate text

I would like to know, I have a text created with canvas on chartJS]. How do I rotate the text, while being vertical in the center of the line. I tried Rotate, but the text disappeared from the graph. EXAMPLE link     
asked by 13.04.2017 / 20:36
0
answers

Java - Canvas blinks when redrawing screen

I'm doing a graphical application with the Component class, but every time I delete the canvas to draw a new frame, Canvas flickers! The clearBackground function: public void clearBackground() { Graphics g = bs.getDrawGraphics();...
asked by 23.02.2017 / 14:43
1
answer

Get external site image as date: image / jpeg; base64

Is it possible to save an image as an external site date using javascript or php? because this was the only way I got the image to appear in the browser, to inspect this is the path: link But when I play directly in the browser the image...
asked by 10.03.2018 / 13:44
1
answer

Responsive mouse events with canvas?

I have the following code: var block = false; var context; var drawing; var rect; $(function() { context = $('#canvas')[0].getContext('2d'); drawing = false; rect = $('#canvas')[0].getBoundingClientRect(); $('...
asked by 21.11.2016 / 16:23