日期:2014-05-17  浏览次数:20709 次

html5 图片绘画-美女
<canvas id="canvas1" width="250" height="300" style="background-color:black">
    你的浏览器不支持 &lt;canvas&gt;标签,请使用 Chrome 浏览器 或者 FireFox 浏览器
</canvas><br/>
<input type="button" value="显示美女" onclick="Show();" />
<input type="button" value="清空" onclick="Clear();" />
<script type="text/javascript">
    //美女图的 Base64 编码
IMG_SRC='data:image/gif;base64,/9j/4QDfRXhpZgAASUkqAAgAAAAFABIBAwABAAAAAQAAADEBAgAVAAAASgAAADIBAgAUAAAAXwAAABMCAwABAAAAAQAAAGmHBAABAAAAcwAAAAAAAABBQ0QgU3lzdGVtcyDK/cLrs8nP8QAyMDEwOjEwOjA0IDEyOjQ2OjA2AAUAAJAHAAQAAAAwMjIwkJICAAQAAAA0ODQAAqAEAAEAAADhAAAAA6AEAAEAAAAsAQAABaAEAAEAAAC1AAAAAAAAAAIAAQACAAQAAABSOTgAAgAHAAQAAAAwMTAwAAAAAAAAAAD//gAqSW50ZWwoUikgSlBFRyBMaWJyYXJ5LCB2ZXJzaW9uIDEsNSw0LDM2AP/AABEIASwA4QMBIQACEQEDEQH/2wCEAAMCAgICAQMCAgIDAwMDBAcEBAQEBAkGBgUHCgkLCwoJCgoMDREODAwQDAoKDxQPEBESExMTCw4VFhUSFhESExIBBAUFBgUGDQcHDRsSDxIbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbG//EALwAAAEEAwEBAAAAAAAAAAAAAAUEBgcIAAMJAgEQAAEDAgQDBQUCBw4FAwMFAAECAwQFEQAGEiEHMUEIEyJRYRQycYGRFSMJFkJSobHRFyQzU1RVVmKCkpPB0uEYQ3KU8GOVoyVkoiY0RXPCAQACAwEBAQAAAAAAAAAAAAADBAECBQYABxEAAQQABAMECAYCAwADAAAAAQACAxEEEiExE0FRBSJhoRRxgZGxwdHwBiMyUuHxFUIkJWIzU9L/2gAMAwEAAhEDEQA/AJFdm945uMPnhZkx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