public BasicCommandReturn DeleteImageTemplateFromSlaveFlash(ImageTemplateBuffers StoreBufferToSaveToFlash, ushort PageIndex, ushort NumberOfPagesToDelete) { byte[] Index = BitConverterHelpers.GetBytes16(PageIndex); byte[] Number = BitConverterHelpers.GetBytes16(NumberOfPagesToDelete); SendCommand(CommandCodes.DeleteImageTemplate, new byte[] { (byte)StoreBufferToSaveToFlash, Index[0], Index[1], Number[0], Number[1] }); return(GetReturn()); }
public MatchReturn MatchTemplates(ImageTemplateBuffers StoreBufferToSaveToMatch, ushort StartAtPageIndex, ushort PageCount) { byte[] PageStartIndex = BitConverterHelpers.GetBytes16(StartAtPageIndex); byte[] PageCountNumber = BitConverterHelpers.GetBytes16(PageCount); SendCommand(CommandCodes.TryMatchAnyImageTemplate, new byte[] { (byte)StoreBufferToSaveToMatch, PageStartIndex[0], PageStartIndex[1], PageCountNumber[0], PageCountNumber[1] }); return(GetReturn()); }
public BasicCommandReturn DownLoadImageTemplateToSlave(ImageTemplateBuffers DownloadToStoreBuffer, Stream ImageTemplateAsStream) { MemoryStream ImageTemplateBitmapAsMemoryStream = new MemoryStream(); ImageTemplateAsStream.Position = 0; ImageTemplateAsStream.CopyTo(ImageTemplateBitmapAsMemoryStream); return(DownLoadImageTemplateToSlave(DownloadToStoreBuffer, ImageTemplateBitmapAsMemoryStream.ToArray())); }
public BasicCommandReturn DownLoadImageTemplateToSlave(ImageTemplateBuffers DownloadToStoreBuffer, byte[] ImageTemplateAsBytes) { SendCommand(CommandCodes.UploadImageTemplate, new byte[] { (byte)DownloadToStoreBuffer }); BasicCommandReturn Return = GetReturn(); if (Return.Status != Errors.Success) { return(Return); } SendDataStream(ImageTemplateAsBytes); return(Return); }
public BasicCommandReturn LoadImageTemplateFromSlaveFlash(ImageTemplateBuffers StoreBufferToSaveToFlash, ushort PageIndex) { byte[] Index = BitConverterHelpers.GetBytes16(PageIndex); SendCommand(CommandCodes.LoadImageTemplate, new byte[] { (byte)StoreBufferToSaveToFlash, Index[0], Index[1] }); return(GetReturn()); }
public StreamReturn UploadImageTemplateToPC(ImageTemplateBuffers UploadFromStoreBuffer) { SendCommand(CommandCodes.UploadImageTemplate, new byte[] { (byte)UploadFromStoreBuffer }); return(GetStream()); }
public BasicCommandReturn GenerateImageTemplate(ImageTemplateBuffers StoreAtBuffer = ImageTemplateBuffers.ImageTemplateBuffer2) { SendCommand(CommandCodes.GenerateImageTemplate, new byte[] { (byte)StoreAtBuffer }); return(GetReturn()); }