Dh_image=VCS. Public. Public_Variadle. GxYMJ. Acq_YMJ (comboBox1. Text, Convert ToDouble (txt_Parts_exposure. Text));
If (dh_image!=null)
Scr_1=new Image
(dh_image); Operate the Bitamp abnormalities, bitmap area has been locked, CodePudding user response:
Other controls are used and lock the bitmap Only be operated unLockBits such as In general LockBits finish operation must be unlocked, CodePudding user response:
reference 1st floor stherix response: instructions and lock the other controls are using bitmap Only be operated unLockBits such as In general LockBits finish operation must unlock, BitmapData bmpData=https://bbs.csdn.net/topics/btm.LockBits (new Rectangle (0, 0, BTM. Width, BTM. Height), ImageLockMode. ReadWrite, BTM. PixelFormat); BTM. UnlockBits (bmpData); Bitm=BTM; I added this one, but still an error, CodePudding user response:
https://blog.csdn.net/iwbfaith/article/details/55804724 reference CodePudding user response:
The reference 3 floor XBodhi. Response: https://blog.csdn.net/iwbfaith/article/details/55804724 Reference Tried I now is saved to the hard drive first and then the image directly on from the hard disk to invoke the abnormal so as not to CodePudding user response:
reference 4 floor qq_27019749 response: Quote: reference 3 floor XBodhi. Response: https://blog.csdn.net/iwbfaith/article/details/55804724 Reference Tried I now is saved to the hard drive first and then the image directly on from the hard disk to invoke the abnormal so as not to Does not release the flow, CodePudding user response:
How to release the Dispose? So I tried to direct an error CodePudding user response:
reference 5 floor XBodhi. Response: Quote: refer to 4th floor qq_27019749 response: The Quote: reference 3 floor XBodhi. Response: https://blog.csdn.net/iwbfaith/article/details/55804724 Reference Tried I now is saved to the hard drive first and then the image directly on from the hard disk to invoke the abnormal so as not to Does not release the flow, How to release the Dispose? So I tried to direct an error