网站大量收购独家精品文档,联系QQ:2885784924

用vc编程实现bmp图像裁切(Implementation of BMP image cutting with VC programming).doc

用vc编程实现bmp图像裁切(Implementation of BMP image cutting with VC programming).doc

  1. 1、本文档共12页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
用vc编程实现bmp图像裁切(Implementation of BMP image cutting with VC programming)

用vc编程实现bmp图像裁切(Implementation of BMP image cutting with VC programming) VC programming with BMP.Txt21 image cut spring blossoms! If you have experienced the winter, then you would have to spring! If you have faith, so the spring will far away; if you are paid, then one day you will have the flowers full circle. 5.5 programming with VC BMP image cut With the development of electronic technology and computer technology, digital image processing into a period of rapid development, many mature image processing software such as bamboo shoots after a spring rain like emerge in an endless stream. Have image cutting function in most of the image processing software, it can quickly extract the region of interest, remove redundant image content. How programming image cutting, the following BMP image as an example to introduce how to use VC to achieve image cut. The first method, the image data is read into memory, then the region of interest in cutting down. Have a BMP image storage structure of chapters in many digital image processing books, here is not described in detail. The BMP file is generally divided into four parts: the bitmap header bitmap information header palette and image data. Image cut to use several parameters information in the header bitmap values: biWidth (image width), biHeight (image height), biBitCount (bits per pixel), biSizeImage (image length). The image must first determine the location of each pixel cutting cutting area in the whole image, we use cutting area center pixel position when the note is the image data storage is started from the bottom line on the left. The following figure, Height is the image Width image is high, wide, ctPoint is cutting area center coordinates, dwX and dwY are respectively the width and height of cutting area. With 256 color images as an example (for each pixel in a byte), cutting area (lower left corner of the pixel is the first pixel of the image after cutting position) for (Height-ctPoint.y-dwY/2-1) * Width+ctPoin

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档