2012年9月8日

Read and write an image's pixels using GetDIBits and SetDIBits

摘要: Initialize a BITMAPINFO structure to describe the image. Redimension an array of Byte to hold pixel data. The array's entries will contain:pixels(1, X, Y)Blue component of pixel (X, Y)pixels(2, X, Y)Green component of pixel (X, Y)pixels(3, X, Y)Red component of pixel (X, Y)pixels(4, X, Y)Padding 阅读全文

posted @ 2012-09-08 15:40 圣光 阅读(325) 评论(0) 推荐(0)

JS获取HTML元素属性【转】

摘要: <script type="text/javascript"> function test() { var d1 = document.getElementById('d1'); var p1 = document.getElementById('p1'); alert(d1.alt); // 仅IE支持 alert(p1.alt); // 仅IE支持 alert(d1.getAttribute('alt')); // IE、FF、谷歌浏览器都支持 alert(p1.getAttribute('alt 阅读全文

posted @ 2012-09-08 06:27 圣光 阅读(453) 评论(0) 推荐(0)

导航