可以看下RasterImageDef类的OpenImage函数 开发文档的解释 Returns the associated image data object for writing. (See ATIL documentation for information about the Atil.Image class.) Each call to OpenImage must eventually be followed by a call to RasterImageDef.CloseImage(). This function is intended for use by raster editing application developers for image modification operations only. (Use RasterImageDef.ImageCopy() for read-only access to the image data.) The image returned by this function is the image being displayed. Any modifications to that image will appear the next time the image is redrawn. A copy of the image is automatically saved for Undo. You may call OpenImage, then close the RasterImageDef object without calling CloseImage. This is called a "long term write lock." You can modify the image data at will while you hold the Atil.Image pointer. Any changes made in the image data appear the next time the image entities are redrawn. The write lock should not be held so long as to interfere with other user commands such as Image Reload, Unload and Detach. |