Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

302
Views
Lienzo HTML5: ciertas imágenes se ven borrosas cuando se dibujan con context.drawImage()

Ciertas imágenes se ven borrosas cuando se dibujan en un lienzo HTML5.

El siguiente ejemplo dibuja dos imágenes usando context.drawImage(). Una de las imágenes está borrosa mientras que la otra se ve como se esperaba.

imagen borrosa

Código Javascript para dibujar la imagen en el lienzo - jsfiddle

 function drawImage(canvasId, imageId) { var canvas = document.getElementById(canvasId); var ctx = canvas.getContext("2d"); var img = document.getElementById(imageId); canvas.width = img.width; canvas.height = img.height; ctx.drawImage(img, 0, 0, img.width, img.height); } // draw blurry example drawImage('canvas1', 'img1'); // draw non blurry example drawImage('canvas2', 'img2');

Cualquier ayuda sería apreciada. Gracias.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!