LEADTOOLS Support
Imaging
Imaging SDK Questions
How can i copy image from TLeadImage to TLeadRaster
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, October 17, 2007 10:06:13 PM(UTC)
Groups: Registered
Posts: 4
Document Image suit / OCR / BaCode plug-in v14.5 (dephi7)
-----------------------------------------
after scanning , in acquire page event
------------------------------------------
......
LeadRaster1 := CreateComObject(CLASS_LEADRaster) as LEADRaster;
.........
function TScanf.LEADTwain1AcquirePageEvent(Bitmap: TBitmapHandle): Integer;
result := SUCCESS;
LeadImage2.bitmap := bitmap;
// for barcode reading
LeadBarCode1.BitMap := LeadImage2.OCXBitmap;
.........
LeadImage2.Save('c:\aaa',FILE_CCITT_GROUP4,1,PQ1,SAVE_OVERWRITE);
// for ocr loading image file
nRet:= LEADRasterIO1.Load ( LeadRaster1 ,'c:\aaa', 0, 0, 1 );
if ( nRet <> 0 ) then
begin
ShowMessage ( 'Error loading file' );
exit;
end;
nRet:= LEADRasterDocument1.AddPage ( LeadRaster1, 0 );
if ( nRet = 0 ) then LEADRasterView1.Raster.Bitmap := LeadRaster1.Bitmap;
.........................................
It works well, but without saving image ,
How can i use bitmap(Tbitmaphandle) on LeadRaster1
Thanks ...
#2
Posted
:
Sunday, October 21, 2007 1:04:20 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
You can copy the image from VCL LeadImage to LeadRaster by using the LEADImage.OCXBitmap as follows:
+----------+
LEADRasterView1.Raster.Bitmap := LEADImage1.OCXBitmap;
+----------+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Imaging
Imaging SDK Questions
How can i copy image from TLeadImage to TLeadRaster
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.