jsBitmap | 基于Javascript的bitmap处理,将位图输出为base64编码以便于浏览器进行显示。
kandi X-RAY | jsBitmap Summary
kandi X-RAY | jsBitmap Summary
jsBitmap is a JavaScript library. jsBitmap has no bugs, it has no vulnerabilities and it has low support. However jsBitmap has a Non-SPDX License. You can download it from GitHub.
一、Bitmap.create(width, height, bgcolor) 创建一个width x height像素大小的位图,底色为bgcolor所代表的颜色。 如:bitmap.create(10, 10, 0xff0000); // 创建一个10 x 10像素的底色为红色的位图. 二、Bitmap.toBase64() 将位图输出为base64编码的带datauri头(data:image/bmp;base64,)的字符串,以便于在浏览器里显示。 如:document.getElementById(img1).src = bitmap.toBase64();. 四、Bitmap.setBitmapBytes(val, idx, length) 修改bitmap位图数据的第idx位置起的length字节为val值。. 六、Bitmap.setHeaderValue(attribute, headerValue) 设置attribute头属性的值为headerValue,attribute必须为BitMapFormat的成员属性,需要提供offset、length等属性值。 如:bitmap.setHeaderValue(BitmapFormat.biWidth, 500); // 设置位图的宽度为500像素值. 八、Bitmap.setPixel(x, y, color) 设置位图的(x, y)位置的像素值为color。. 九、Bitmap.getPixel(x, y) 获取位图的(x, y)位置的RGB值,返回的内容为[ rr, gg, bb ]的数组内容.
一、Bitmap.create(width, height, bgcolor) 创建一个width x height像素大小的位图,底色为bgcolor所代表的颜色。 如:bitmap.create(10, 10, 0xff0000); // 创建一个10 x 10像素的底色为红色的位图. 二、Bitmap.toBase64() 将位图输出为base64编码的带datauri头(data:image/bmp;base64,)的字符串,以便于在浏览器里显示。 如:document.getElementById(img1).src = bitmap.toBase64();. 四、Bitmap.setBitmapBytes(val, idx, length) 修改bitmap位图数据的第idx位置起的length字节为val值。. 六、Bitmap.setHeaderValue(attribute, headerValue) 设置attribute头属性的值为headerValue,attribute必须为BitMapFormat的成员属性,需要提供offset、length等属性值。 如:bitmap.setHeaderValue(BitmapFormat.biWidth, 500); // 设置位图的宽度为500像素值. 八、Bitmap.setPixel(x, y, color) 设置位图的(x, y)位置的像素值为color。. 九、Bitmap.getPixel(x, y) 获取位图的(x, y)位置的RGB值,返回的内容为[ rr, gg, bb ]的数组内容.
Support
Quality
Security
License
Reuse
Support
jsBitmap has a low active ecosystem.
It has 20 star(s) with 13 fork(s). There are 2 watchers for this library.
It had no major release in the last 6 months.
There are 0 open issues and 1 have been closed. On average issues are closed in 1 days. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of jsBitmap is current.
Quality
jsBitmap has 0 bugs and 0 code smells.
Security
jsBitmap has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
jsBitmap code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
jsBitmap has a Non-SPDX License.
Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.
Reuse
jsBitmap releases are not available. You will need to build from source code and install.
Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jsBitmap
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jsBitmap
jsBitmap Key Features
No Key Features are available at this moment for jsBitmap.
jsBitmap Examples and Code Snippets
No Code Snippets are available at this moment for jsBitmap.
Community Discussions
No Community Discussions are available at this moment for jsBitmap.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jsBitmap
You can download it from GitHub.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page