| 
									
										
										
										
											2014-04-02 19:13:15 -04:00
										 |  |  |  | using NTwain.Data; | 
					
						
							| 
									
										
										
										
											2014-04-20 16:57:38 -04:00
										 |  |  |  | using NTwain.Internals; | 
					
						
							| 
									
										
										
										
											2014-04-02 19:01:21 -04:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | namespace NTwain.Triplets | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  | 	sealed class ImageMemXfer : OpBase | 
					
						
							|  |  |  |  | 	{ | 
					
						
							| 
									
										
										
										
											2014-04-20 18:42:51 -04:00
										 |  |  |  | 		internal ImageMemXfer(ITwainSessionInternal session) : base(session) { } | 
					
						
							| 
									
										
										
										
											2014-04-02 19:01:21 -04:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 		/// <summary> | 
					
						
							|  |  |  |  | 		/// This operation is used to initiate the transfer of an image from the Source to the application via | 
					
						
							|  |  |  |  | 		/// the Buffered Memory transfer mechanism. | 
					
						
							|  |  |  |  | 		/// </summary> | 
					
						
							|  |  |  |  | 		/// <param name="xfer">The xfer.</param> | 
					
						
							|  |  |  |  | 		/// <returns></returns> | 
					
						
							|  |  |  |  | 		public ReturnCode Get(TWImageMemXfer xfer) | 
					
						
							|  |  |  |  | 		{ | 
					
						
							|  |  |  |  | 			Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.ImageMemXfer, Message.Get); | 
					
						
							| 
									
										
										
										
											2014-04-16 06:53:05 -04:00
										 |  |  |  | 			return Dsm.DsmEntry(Session.AppId, Session.SourceId, Message.Get, xfer); | 
					
						
							| 
									
										
										
										
											2014-04-02 19:01:21 -04:00
										 |  |  |  | 		} | 
					
						
							|  |  |  |  | 	} | 
					
						
							|  |  |  |  | } |