I am trying to build a pixel that would track the current URL the user is on when they visit. I can use either JS (preferred) or a 1x1 image pixel. With JS I am assuming that I'd need to run an AJAX request to a PHP script to capture the info t...
I have an image on a browser.  I want to get the top left pixel of the image color (at coordinates: 0,0), no matter whether the image is rotated or not.    How can I do that, using javascript or php code?...
Maybe this is a noob question but...  I have a site where I want the footer to appear in the same place all the time. Assuming my users are all on >= IE8, Chrome and Firefox I figured it was just a question of getting the Window.outerHeight.  But...
I have a map that is a per pixel terrain. If you draw these pixels individually, it takes a lot of render time.  So my idea is to draw them in blocks of 100x100 images when the pixels are changed, and render those images.  The pixels in "chunk...
I would like to know a way to generate a single pixel in JavaScript converting it to base64. The ideal function would be:  function createPixel(hexColor, opacity){    //...Calculate    return base64DataURL; }   I am not very familiar with image proce...
I need to process pixeldata from a 1000x1000px *.bmp image (~1MiB) in javascript At the moment i am a bit stuck, because the page freezes when i try to dump the data to the console. the important code so far:    var img = new Image(); img.src = '...
In html5, when you draw to a canvas using putImageData(), if some of the pixels you are drawing are transparent (or semi-transparent), how do you keep old pixels in the canvas unaffected?  example:  var imgData = context.createImageData(30,30); for(v...
I'm animating a sprite on a pixel grid. I have a few options, with pros and cons for each. I have a fair amount of javascript experience (six years), but none with this kind of thing. The problem is I don't know how expensive each option will...
Is there a way to read transparent pixels from a picture using javascript?   I think, that it could be something similar to what PNG fixes does for IE (reading transparent pixels and applying some stuff, lol). But yes, for every browser..  Ah, would...
How do I merge a smaller image on top of a larger background image on one canvas. The smaller image will move around. So I will need to keep reference of the original background pixel data, so that the each frame the canvas can be redrawn, with the o...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.