- 浏览: 600390 次
- 性别:
- 来自: 广州
-
文章分类
最新评论
-
wzh051527:
我是大四实习生一个,自我感觉技术能力在第三年。。唯一不明白,为 ...
十年技术,不要再迷茫 -
room_bb:
.hrl文件怎么加入到编译规则里面?比如:pp.hrl文件-d ...
Erlang中用的makefile的一点解释 -
吉米家:
感觉帆软报表的flash打印就很不错哇,特别好用
JSP 实现报表打印 -
雪碧爱芬达:
苦逼程序员的辛酸反省与总结 -
mlyjxx:
...
十年技术,不要再迷茫
/** * com.voidelement.images.BMPDecoder Class for ActionScript 3.0 * * @author Copyright (c) 2007 munegon * @version 1.0 * * @link http://www.voidelement.com/ * @link http://void.heteml.jp/blog/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package com.voidelement.images { import flash.display.BitmapData; import flash.errors.IOError; import flash.utils.ByteArray; import flash.utils.Endian; public class BMPDecoder { //___________________________________________________________ const private const BITMAP_HEADER_TYPE:String = "BM"; private const BITMAP_FILE_HEADER_SIZE:int = 14; private const BITMAP_CORE_HEADER_SIZE:int = 12; private const BITMAP_INFO_HEADER_SIZE:int = 40; private const COMP_RGB :int = 0; private const COMP_RLE8 :int = 1; private const COMP_RLE4 :int = 2; private const COMP_BITFIELDS:int = 3; private const BIT1 :int = 1; private const BIT4 :int = 4; private const BIT8 :int = 8; private const BIT16:int = 16; private const BIT24:int = 24; private const BIT32:int = 32; //___________________________________________________________ vars private var bytes:ByteArray; private var palette:Array; private var bd:BitmapData; private var nFileSize:uint; private var nReserved1:uint; private var nReserved2:uint; private var nOffbits:uint; private var nInfoSize:uint; private var nWidth:int; private var nHeight:int; private var nPlains:uint; private var nBitsPerPixel:uint; private var nCompression:uint; private var nSizeImage:uint; private var nXPixPerMeter:int; private var nYPixPerMeter:int; private var nColorUsed:uint; private var nColorImportant:uint; private var nRMask:uint; private var nGMask:uint; private var nBMask:uint; private var nRPos:uint; private var nGPos:uint; private var nBPos:uint; private var nRMax:uint; private var nGMax:uint; private var nBMax:uint; /** * コンストラクタ */ public function BMPDecoder() { nRPos = 0; nGPos = 0; nBPos = 0; } /** * デコード * * @param デコードしたいBMPファイルのバイナリデータ */ public function decode( data:ByteArray ):BitmapData { bytes = data; bytes.endian = Endian.LITTLE_ENDIAN; bytes.position = 0; readFileHeader(); nInfoSize = bytes.readUnsignedInt(); switch ( nInfoSize ) { case BITMAP_CORE_HEADER_SIZE: readCoreHeader(); break; case BITMAP_INFO_HEADER_SIZE: readInfoHeader(); break; default: readExtendedInfoHeader(); break; } bd = new BitmapData( nWidth, nHeight ); switch ( nBitsPerPixel ){ case BIT1: readColorPalette(); decode1BitBMP(); break; case BIT4: readColorPalette(); if ( nCompression == COMP_RLE4 ){ decode4bitRLE(); } else { decode4BitBMP(); } break; case BIT8: readColorPalette(); if ( nCompression == COMP_RLE8 ){ decode8BitRLE(); } else { decode8BitBMP(); } break; case BIT16: readBitFields(); checkColorMask(); decode16BitBMP(); break; case BIT24: decode24BitBMP(); break; case BIT32: readBitFields(); checkColorMask(); decode32BitBMP(); break; default: throw new VerifyError("invalid bits per pixel : " + nBitsPerPixel ); } return bd; } /** * BITMAP FILE HEADER 読み込み */ private function readFileHeader():void { var fileHeader:ByteArray = new ByteArray(); fileHeader.endian = Endian.LITTLE_ENDIAN; try { bytes.readBytes( fileHeader, 0, BITMAP_FILE_HEADER_SIZE ); if ( fileHeader.readUTFBytes( 2 ) != BITMAP_HEADER_TYPE ){ throw new VerifyError("invalid bitmap header type"); } nFileSize = fileHeader.readUnsignedInt(); nReserved1 = fileHeader.readUnsignedShort(); nReserved2 = fileHeader.readUnsignedShort(); nOffbits = fileHeader.readUnsignedInt(); } catch ( e:IOError ) { throw new VerifyError("invalid file header"); } } /** * BITMAP CORE HEADER 読み込み */ private function readCoreHeader():void { var coreHeader:ByteArray = new ByteArray(); coreHeader.endian = Endian.LITTLE_ENDIAN; try { bytes.readBytes( coreHeader, 0, BITMAP_CORE_HEADER_SIZE - 4 ); nWidth = coreHeader.readShort(); nHeight = coreHeader.readShort(); nPlains = coreHeader.readUnsignedShort(); nBitsPerPixel = coreHeader.readUnsignedShort(); } catch ( e:IOError ) { throw new VerifyError("invalid core header"); } } /** * BITMAP INFO HEADER 読み込み */ private function readInfoHeader():void { var infoHeader:ByteArray = new ByteArray(); infoHeader.endian = Endian.LITTLE_ENDIAN; try { bytes.readBytes( infoHeader, 0, BITMAP_INFO_HEADER_SIZE - 4 ); nWidth = infoHeader.readInt(); nHeight = infoHeader.readInt(); nPlains = infoHeader.readUnsignedShort(); nBitsPerPixel = infoHeader.readUnsignedShort(); nCompression = infoHeader.readUnsignedInt(); nSizeImage = infoHeader.readUnsignedInt(); nXPixPerMeter = infoHeader.readInt(); nYPixPerMeter = infoHeader.readInt(); nColorUsed = infoHeader.readUnsignedInt(); nColorImportant = infoHeader.readUnsignedInt(); } catch ( e:IOError ) { throw new VerifyError("invalid info header"); } } /** * 拡張 BITMAP INFO HEADER 読み込み */ private function readExtendedInfoHeader():void { var infoHeader:ByteArray = new ByteArray(); infoHeader.endian = Endian.LITTLE_ENDIAN; try { bytes.readBytes( infoHeader, 0, nInfoSize - 4 ); nWidth = infoHeader.readInt(); nHeight = infoHeader.readInt(); nPlains = infoHeader.readUnsignedShort(); nBitsPerPixel = infoHeader.readUnsignedShort(); nCompression = infoHeader.readUnsignedInt(); nSizeImage = infoHeader.readUnsignedInt(); nXPixPerMeter = infoHeader.readInt(); nYPixPerMeter = infoHeader.readInt(); nColorUsed = infoHeader.readUnsignedInt(); nColorImportant = infoHeader.readUnsignedInt(); if ( infoHeader.bytesAvailable >= 4 ) nRMask = infoHeader.readUnsignedInt(); if ( infoHeader.bytesAvailable >= 4 ) nGMask = infoHeader.readUnsignedInt(); if ( infoHeader.bytesAvailable >= 4 ) nBMask = infoHeader.readUnsignedInt(); } catch ( e:IOError ) { throw new VerifyError("invalid info header"); } } /** * ビットフィールド読み込み */ private function readBitFields():void { if ( nCompression == COMP_RGB ){ if ( nBitsPerPixel == BIT16 ){ // RGB555 nRMask = 0x00007c00; nGMask = 0x000003e0; nBMask = 0x0000001f; } else { //RGB888; nRMask = 0x00ff0000; nGMask = 0x0000ff00; nBMask = 0x000000ff; } } else if ( ( nCompression == COMP_BITFIELDS ) && ( nInfoSize < 52 ) ){ try { nRMask = bytes.readUnsignedInt(); nGMask = bytes.readUnsignedInt(); nBMask = bytes.readUnsignedInt(); } catch ( e:IOError ) { throw new VerifyError("invalid bit fields"); } } } /** * カラーパレット読み込み */ private function readColorPalette():void { var i:int; var len:int = ( nColorUsed > 0 ) ? nColorUsed : Math.pow( 2, nBitsPerPixel ); palette = new Array( len ); for ( i = 0; i < len; ++i ){ palette[ i ] = bytes.readUnsignedInt(); } } /** * 1bitのBMPデコード */ private function decode1BitBMP():void { var x:int; var y:int; var i:int; var col:int; var buf:ByteArray = new ByteArray(); var line:int = nWidth / 8; if ( line % 4 > 0 ){ line = ( ( line / 4 | 0 ) + 1 ) * 4; } try { for ( y = nHeight - 1; y >= 0; --y ){ buf.length = 0; bytes.readBytes( buf, 0, line ); for ( x = 0; x < nWidth; x += 8 ){ col = buf.readUnsignedByte(); for ( i = 0; i < 8; ++i ){ bd.setPixel( x + i, y, palette[ col >> ( 7 - i ) & 0x01 ] ); } } } } catch ( e:IOError ) { throw new VerifyError("invalid image data"); } } /** * 4bitのRLE圧縮BMPデコード */ private function decode4bitRLE():void { var x:int; var y:int; var i:int; var n:int; var col:int; var data:uint; var buf:ByteArray = new ByteArray(); try { for ( y = nHeight - 1; y >= 0; --y ){ buf.length = 0; while ( bytes.bytesAvailable > 0 ){ n = bytes.readUnsignedByte(); if ( n > 0 ){ // エンコードデータ data = bytes.readUnsignedByte(); for ( i = 0; i < n/2; ++i ){ buf.writeByte( data ); } } else { n = bytes.readUnsignedByte(); if ( n > 0 ){ // 絶対モードデータ bytes.readBytes( buf, buf.length, n/2 ); buf.position += n/2; if ( n/2 + 1 >> 1 << 1 != n/2 ){ bytes.readUnsignedByte(); } } else { // EOL break; } } } buf.position = 0; for ( x = 0; x < nWidth; x += 2 ){ col = buf.readUnsignedByte(); bd.setPixel( x, y, palette[ col >> 4 ] ); bd.setPixel( x + 1, y, palette[ col & 0x0f ] ); } } } catch ( e:IOError ) { throw new VerifyError("invalid image data"); } } /** * 4bitの非圧縮BMPデコード */ private function decode4BitBMP():void { var x:int; var y:int; var i:int; var col:int; var buf:ByteArray = new ByteArray(); var line:int = nWidth / 2; if ( line % 4 > 0 ){ line = ( ( line / 4 | 0 ) + 1 ) * 4; } try { for ( y = nHeight - 1; y >= 0; --y ){ buf.length = 0; bytes.readBytes( buf, 0, line ); for ( x = 0; x < nWidth; x += 2 ){ col = buf.readUnsignedByte(); bd.setPixel( x, y, palette[ col >> 4 ] ); bd.setPixel( x + 1, y, palette[ col & 0x0f ] ); } } } catch ( e:IOError ) { throw new VerifyError("invalid image data"); } } /** * 8bitのRLE圧縮BMPデコード */ private function decode8BitRLE():void { var x:int; var y:int; var i:int; var n:int; var col:int; var data:uint; var buf:ByteArray = new ByteArray(); try { for ( y = nHeight - 1; y >= 0; --y ){ buf.length = 0; while ( bytes.bytesAvailable > 0 ){ n = bytes.readUnsignedByte(); if ( n > 0 ){ // エンコードデータ data = bytes.readUnsignedByte(); for ( i = 0; i < n; ++i ){ buf.writeByte( data ); } } else { n = bytes.readUnsignedByte(); if ( n > 0 ){ // 絶対モードデータ bytes.readBytes( buf, buf.length, n ); buf.position += n; if ( n + 1 >> 1 << 1 != n ){ bytes.readUnsignedByte(); } } else { // EOL break; } } } buf.position = 0; for ( x = 0; x < nWidth; ++x ){ bd.setPixel( x, y, palette[ buf.readUnsignedByte() ] ); } } } catch ( e:IOError ) { throw new VerifyError("invalid image data"); } } /** * 8bitの非圧縮BMPデコード */ private function decode8BitBMP():void { var x:int; var y:int; var i:int; var col:int; var buf:ByteArray = new ByteArray(); var line:int = nWidth; if ( line % 4 > 0 ){ line = ( ( line / 4 | 0 ) + 1 ) * 4; } try { for ( y = nHeight - 1; y >= 0; --y ){ buf.length = 0; bytes.readBytes( buf, 0, line ); for ( x = 0; x < nWidth; ++x ){ bd.setPixel( x, y, palette[ buf.readUnsignedByte() ] ); } } } catch ( e:IOError ) { throw new VerifyError("invalid image data"); } } /** * 16bitのBMPデコード */ private function decode16BitBMP():void { var x:int; var y:int; var col:int; try { for ( y = nHeight - 1; y >= 0; --y ){ for ( x = 0; x < nWidth; ++x ){ col = bytes.readUnsignedShort(); bd.setPixel( x, y, ( ( ( col & nRMask ) >> nRPos )*0xff/nRMax << 16 ) + ( ( ( col & nGMask ) >> nGPos )*0xff/nGMax << 8 ) + ( ( ( col & nBMask ) >> nBPos )*0xff/nBMax << 0 ) ); } } } catch ( e:IOError ) { throw new VerifyError("invalid image data"); } } /** * 24bitのBMPデコード */ private function decode24BitBMP():void { var x:int; var y:int; var col:int; var buf:ByteArray = new ByteArray(); var line:int = nWidth * 3; if ( line % 4 > 0 ){ line = ( ( line / 4 | 0 ) + 1 ) * 4; } try { for ( y = nHeight - 1; y >= 0; --y ){ buf.length = 0; bytes.readBytes( buf, 0, line ); for ( x = 0; x < nWidth; ++x ){ bd.setPixel( x, y, buf.readUnsignedByte() + ( buf.readUnsignedByte() << 8 ) + ( buf.readUnsignedByte() << 16 ) ); } } } catch ( e:IOError ) { throw new VerifyError("invalid image data"); } } /** * 32bitのBMPデコード */ private function decode32BitBMP():void { var x:int; var y:int; var col:int; try { for ( y = nHeight - 1; y >= 0; --y ){ for ( x = 0; x < nWidth; ++x ){ col = bytes.readUnsignedInt(); bd.setPixel( x, y, ( ( ( col & nRMask ) >> nRPos )*0xff/nRMax << 16 ) + ( ( ( col & nGMask ) >> nGPos )*0xff/nGMax << 8 ) + ( ( ( col & nBMask ) >> nBPos )*0xff/nBMax << 0 ) ); } } } catch ( e:IOError ) { throw new VerifyError("invalid image data"); } } /** * カラーマスクチェック */ private function checkColorMask():void { if ( ( nRMask & nGMask ) | ( nGMask & nBMask ) | ( nBMask & nRMask ) ){ throw new VerifyError("invalid bit fields"); } while ( ( nRMask >> nRPos ) & 0x00000001 == 0 ){ nRPos++; } while ( ( nGMask >> nGPos ) & 0x00000001 == 0 ){ nGPos++; } while ( ( nBMask >> nBPos ) & 0x00000001 == 0 ){ nBPos++; } nRMax = nRMask >> nRPos; nGMax = nGMask >> nGPos; nBMax = nBMask >> nBPos; } /** * 情報出力 */ public function traceInfo():void { trace("---- FILE HEADER ----"); trace("nFileSize: " + nFileSize ); trace("nReserved1: " + nReserved1 ); trace("nReserved2: " + nReserved2 ); trace("nOffbits: " + nOffbits ); trace("---- INFO HEADER ----"); trace("nWidth: " + nWidth ); trace("nHeight: " + nHeight ); trace("nPlains: " + nPlains ); trace("nBitsPerPixel: " + nBitsPerPixel ); if ( nInfoSize >= 40 ){ trace("nCompression: " + nCompression ); trace("nSizeImage: " + nSizeImage ); trace("nXPixPerMeter: " + nXPixPerMeter ); trace("nYPixPerMeter: " + nYPixPerMeter ); trace("nColorUsed: " + nColorUsed ); trace("nColorUsed: " + nColorImportant ); } if ( nInfoSize >= 52 ){ trace("nRMask: " + nRMask.toString( 2 ) ); trace("nGMask: " + nGMask.toString( 2 ) ); trace("nBMask: " + nBMask.toString( 2 ) ); } } } }
发表评论
-
as3 Loader 加载资源后内存泄露无法释放的问题。
2014-06-21 10:30 692as3 Loader 加载资源后内存泄露无法释放的问题。 ... -
as3判断flash player版本的函数
2014-06-10 20:35 853//判断当前版本是否高于9.0.115.0为例子. pr ... -
CSS 中文字体的英文名称 (simhei, simsun) 宋体 微软雅黑
2014-04-03 15:25 1059华文细黑:STHeiti Light [STXihei]华文 ... -
as3.0的垃圾回收机制
2013-09-07 14:02 1553还是同样的博客,还是同样的作者(Daniel Sidhio ... -
AIR程序多开
2013-09-07 13:55 1017AIR应用通常不能像QQ那样能进行多开操作。为了让一个用AI ... -
starling性能优化总结
2013-07-22 14:06 1483在项目开发的过程中总结了一下starling的性能优化方案: ... -
AS3 Socket从零开始
2013-07-22 12:54 1116大家如果想学AS3 Socket直接在百度里搜一下,会找到很 ... -
绕开AS3安全沙箱 跨域加载SWF
2013-07-11 12:53 925AS3的安全沙箱的确是 ... -
解决AS3在ie中初始化时stageWidth和stageHeight为0
2013-06-14 09:23 1040先看下面的一段脚本,这是比较经典的初始化脚本: pac ... -
动态获取swc中的类
2013-05-25 10:32 988想通过代码生成,来获取swc中的类,并且可以作为普通类正常使 ... -
AS3 中字符串的format功能实现
2013-05-25 10:19 849使用C#的朋友都知道,string.Format();还是挺 ... -
总结调用Flash的几种方法
2013-05-02 16:18 1684一、Adobe 提供的方法 <object wi ... -
Flash3D错误集锦
2013-05-02 14:03 954VerifyError: Error #1014: 无法找到 ... -
使用scale拉伸之后的坐标问题
2013-04-12 09:38 1309最近发现论坛多了很多 ... -
30个实用的网页设计工具
2013-03-20 09:58 846作为一位网页设计师或开发者,你一直需要搜寻获取强大的网页设计 ... -
如何成为强大的程序员?
2013-03-11 11:27 738Aaron Stannard是新创公 ... -
漫谈重构
2013-03-11 11:09 890因为工作内容的原因, ... -
AS3使用谷歌API生成二维码
2012-12-10 16:24 1375二维码在新闻杂志,网站,网络广告,电视广告等地方随处可见 ... -
OOP的聚合原则
2012-12-10 16:21 943什么是聚合? 聚合可以很好地表达对象是什么和做 ... -
压缩速率追踪
2012-11-02 14:16 1493Flash Player 11.3添加了一个压缩和解压B ...
相关推荐
标题"BMPDecoder.rar"指的是一个专门用于处理BMP图像文件的解码类,适用于ActionScript 3.0(AS3)编程环境。BMP(Bitmap)是一种常见的位图格式,广泛用于存储数字图像。在AS3中,处理这种格式的图像通常涉及到二...
1. **BMPDecoder.as**: 这个文件很可能是实现BMP文件解析的核心类。在AS3中,开发者通常会创建一个类来处理BMP文件的二进制数据,将其转化为可以显示的Bitmap对象。BMPDecoder可能包含读取BMP文件头信息、解析像素...
**正文** 在嵌入式开发领域,MicroPython是一种精简版的Python编程语言,它被设计用于资源有限的微控制器,如Arduino或Raspberry Pi Pico等。ST7735是一款广泛应用于小型TFT LCD显示屏的驱动芯片,主要用于显示图形...
- **BmpDecoder.h**:头文件,包含了BmpDecoder.c中的函数声明和其他必要的定义。 - **BmpInfoHeader.h**:定义了位图信息头结构体,这是理解位图文件格式的基础。 - **BmpPalette.h**:定义了位图调色板相关的...
cole_02_0507
内容概要:南京邮电大学工程硕士研究的无线传感器网络路由技术。通过对无线传感器网络路由协议的历史和研究现状进行了详细探讨,着重介绍了SPIN、LEACH、TEEN、pEGASIS等常见协议的特点、优势与局限性。文中分析了现有路由协议中的能量管理和网络覆盖问题,并提出了一种结合最大覆盖模型的改进型能量LEACH协议来应对这些问题。该研究旨在提高无线传感网络能量效率和覆盖效果,从而拓展其在各行业尤其是环境监测和军事安全领域的大规模应用。 适合人群:本篇文章主要面向具有无线传感网路研究背景或对此有兴趣的研究人员、工程师和技术爱好者,特别是在能源消耗控制上有较高需求的应用开发者。 使用场景及目标:①帮助理解和选择合适的无线传感器网络路由技术;②指导开发新路由协议时关注的关键要素;③为企业实施物联网相关项目提供理论支撑。 其他说明:文章强调了优化算法对于改善系统性能的重要性,并展示了具体的实施方案。通过仿真实验对不同协议的效果进行了验证,体现了科学研究的严谨态度与实践导向。
【东海期货-2025研报】东海贵金属周度策略:金价高位回落,阶段性回调趋势初现.pdf
【资源介绍】 1、该资源包括项目的全部源码,下载可以直接使用! 2、本项目适合作为计算机、数学、电子信息等专业的课程设计、期末大作业和毕设项目,也可以作为小白实战演练和初期项目立项演示的重要参考借鉴资料。 3、本资源作为“学习资料”如果需要实现其他功能,需要能看懂代码,并且热爱钻研和多多调试实践。 图像数据处理工具+数据(帮助用户快速划分数据集并增强图像数据集。通过自动化数据处理流程,简化了深度学习项目的数据准备工作).zip 图像数据处理工具+数据(帮助用户快速划分数据集并增强图像数据集。通过自动化数据处理流程,简化了深度学习项目的数据准备工作).zip 图像数据处理工具+数据(帮助用户快速划分数据集并增强图像数据集。通过自动化数据处理流程,简化了深度学习项目的数据准备工作).zip 图像数据处理工具+数据(帮助用户快速划分数据集并增强图像数据集。通过自动化数据处理流程,简化了深度学习项目的数据准备工作).zip 图像数据处理工具+数据(帮助用户快速划分数据集并增强图像数据集。通过自动化数据处理流程,简化了深度学习项目的数据准备工作).zip 图像数据处理工具+数据(帮助用户快速划分数据集并增强图像数据集。通过自动化数据处理流程,简化了深度学习项目的数据准备工作).zip 图像数据处理工具+数据(帮助用户快速划分数据集并增强图像数据集。通过自动化数据处理流程,简化了深度学习项目的数据准备工作).zip 图像数据处理工具+数据(帮助用户快速划分数据集并增强图像数据集。通过自动化数据处理流程,简化了深度学习项目的数据准备工作).zip
diminico_02_0709
agenda_3cd_01_0716
目录: 第1章 Linux命令入门及VIM编辑器 第2章Python基础 第3章Python面向对象编程 第4章数据结构与算法 第5章UDP与TCP通信 第6章多进程编程 第7章多线程编程 第8章协程 第9章正则表达式 第10章 Http协议 Web服务器并发服务器 第11章网络通信过程 第12章 Python提高1 第13章 Python提高2 第14章 Mysq|基本使用 第15章 Mysq|查询 第16章Mysql与Python交互 第17章Mysql高级 第18章WSGI-miniWeb框架 第19章闭包装饰器 第20章 mini-web框架 添加路由-MySQL功能 第21章 mini-web框架 添加log日志路由支持正则 第22章元类与ORM-面向接口编程
diminico_02_1108
基于人工智能大模型技术的果蔬农技知识智能问答系统.pdf
diminico_02_0307
dawe_3cd_01_0717
anslow_3ck_01_0319
C#全自动多线程上位机源码编程:替代传统PLC触摸屏、以太网通信,强大功能多级页签,支持西门子PLC和OPC,安装KepserverEx5,链接其他数据库,C#多线程自动化工控屏幕上位机源码编程系统:功能强大,多级页签,通信灵活,兼容多种配置与数据库连接,C#全自动多线程上位机源码编程 0, 纯源代码。 1, 替代传统plc搭载的触摸屏。 2, 工控屏幕一体机直接和plc通信。 3, 功能强大,多级页签。 4, 可以自由设定串口或以太网通信。 5, 主页。 6, 报警页。 7, 手动调试页。 8, 参数设定页。 9, 历史查询页。 10,系统设定页。 11, 赠送所有控件。 12,使用的西门子Plc。 13,注册opcdaauto.dll组件,用于使用opc。 15,安装kepserverEx5。 16,可以链接其他数据库。 ,核心关键词: C#; 全自动多线程; 上位机源码编程; 纯源代码; PLC替代; 通信; 强大功能; 多级页签; 串口或以太网通信; 主页; 报警页; 手动调试页; 参数设定页; 历史查询页; 系统设定页; 控件赠送; 西门子PLC; OPC
内容概要:本文详细介绍了移动应用开发的全过程,从创意构思和需求分析开始,依次阐述了原型设计、技术选型、前后端开发、测试优化、上线准备到最后的推广和后续维护,帮助读者深入了解和掌握各个环节的要点和最佳实践,特别注重实际操作中的问题和解决方法。文章不仅涵盖技术层面的内容,还包括市场营销和社会影响等方面的探讨。 适合人群:移动应用开发初学者和有一定经验的开发者,想要了解移动应用从构想直到推向市场全部过程的专业人士。 使用场景及目标:指导新创企业和个体开发者从零开始制作自己的应用程序,提供系统的理论知识以及实用技能指导。 阅读建议:本文适合分章节细读,尤其对于每个关键阶段,可以结合具体的案例研究深入理解;在实践应用时应注意参考文中提到的实际开发中容易碰到的问题及其解决方案。
axios-min.js
Rust语言教程:从入门到进阶 Rust是一门注重性能、内存安全以及并发的系统编程语言。它被设计用来替代C和C++,同时提供更高的安全性和更好的并发支持。本教程将引导你从Rust的基础语法开始,逐步掌握到更高级的概念。 一、Rust入门 1. Rust安装 工具链安装:通过rustup安装Rust工具链,它包含Rust编译器、Cargo包管理器以及标准库文档。 验证安装:在终端运行rustc --version和cargo --version来检查Rust和Cargo是否成功安装。 2. Hello, World! 创建一个新的Rust项目:cargo new hello_world --bin。 进入项目目录:cd hello_world。 编辑srcmain.rs文件,添加fn main() { println!(Hello, World!); }。 编译并运行项目:cargo run。 3. Rust基础语法 变量:使用let关键字声明变量,默认情况下变量是不可变的(immutable)。 数据类型:整数(i32, u32等)、浮点数(f32, f64)、布尔值(bool)、字