Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

117
Vistas
image in canvas is going to top left corner on some devices

I am trying to capture an image of a 3d foot model with the point where I click everything's working fine on some devices. I am using this method to make an image

var img = new Image();
img.src = model.toDataURL;
img.width = 200;
img.height = 200;

and drawing this on a canvas context like this

img.onload = function () {
   ctx.drawImage(img,0,0,200,200);
}

on every device the image fits to the canvas but on 2,3 devices the image is in the top left corner or you can say in the 1st quadrant.

it should be like this Correct

but on some devices its like this Incorrect

the point is perfectly drawn according to 200 x 200 canvas size

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda