Get help. Give help. A Web Design and Development Community.
Is there any way to increase the height of image created using HTML5 canvas putImagedata.
Your browser does not support the HTML5 canvas tag.
put image data accepts up to 5 arguements.
if you use it like this
it will paint imgData to the canvas the top left point being (10,70);
the imgData will be painted from (x,y) = (10,70) and its width and height being 50 each.
this operation scales the image but if you choose different height than width depending on the img aspect ratio it will strech it to fit the area you defined
Thank you, but it is not taking 5 arguements. Tried it.
You must be logged in to reply to this topic.