239000011159 matrix material Substances 0.000 claims description 3.Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.) Filing date Publication date Application filed by Leyard Optoelectronic Co Ltd filed Critical Leyard Optoelectronic Co Ltd Priority to CN2008101141942A priority Critical patent/CN101593469B/en Publication of CN101593469A publication Critical patent/CN101593469A/en Application granted granted Critical Publication of CN101593469B publication Critical patent/CN101593469B/en Status Active legal-status Critical Current Anticipated expiration legal-status Critical Links Original Assignee Leyard Optoelectronic Co Ltd Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.) ( en Inventor 朱保华 Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.) Active Application number CN2008101141942A Other languages Chinese ( zh) Google Patents CN101593469B - LED display screen composed of pixel points of different densities and display method thereof The code's usage is demonstrated in the following live example:Īlso see the source code - HTML, JavaScript.CN101593469B - LED display screen composed of pixel points of different densities and display method thereof getElementById ( "canvas" ) const ctx = canvas. src = "./assets/rhino.jpg" const canvas = document. The Uint8ClampedArray contains height × width × 4 bytes of data, with index values ranging from 0 to ( height× width×4)-1.įor example, to read the blue component's value from the pixel at column 200, row 50 in the image, you would do the following: Pixels then proceed from left to right, then downward, throughout the array. Each component is assigned a consecutive index within the array, with the top left pixel's red component being at index 0 within the array. Each color component is represented by an integer between 0 and 255. The data property returns a Uint8ClampedArray which can be accessed to look at the raw pixel data each pixel is represented by four one-byte values (red, green, blue, and alpha, in that order that is, "RGBA" format). It contains the following read-only attributes: widthĪ Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (included). The ImageData object represents the underlying pixel data of an area of a canvas object.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |