Jump to content

desenho numa div


xploit
 Share

Recommended Posts

Com <div> não é possível. Segundo me parece, tens duas opções, mas nenhuma é grande coisa:

- Em vez de gerar a imagem JPG em Javascript, envias os dados com os quais fizeste o desenho para um script no servidor, e é esse script que renderiza a imagem e a manda para o cliente.

- Podes usar a nova tag <canvas>, que tem funções para aceder aos píxeis diretamente, mas ficas limitado às últimas versões do Firefox, Opera e Safari (sem IE): http://blog.nihilogic.dk/2008/04/saving-canvas-data-to-image-file.html

❝The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.❞- John Carmack on software patents

A list  of command line apps

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. 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.