Jump to content

Canvas an image and finding the colours in use


intellix

Recommended Posts

Hey guys... I have a function that allows a user to alter the size of a <canvas> element that contains an image.

 

In order for it to resize properly I had to remove the old element and create the other, using the same image.

 

Each image only has transparent and one other colour. Is it possible to just..... getColours on the <canvas> image and apply it to the new one?

 

Thanks, Dom

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.