PDA

View Full Version : Remove Overlay details in image



selvanathan
January 19, 2008, 10:15:44
Hello,
I am using continuous image processing..... in that i unclude some overlay details like below......

to display Date&Time and Ref. No in the live image

param.getOverlay()->setEnable(true);
param.getOverlay()->setFont("Arial",24);
param.getOverlay()->drawText(RGB(255,255,255),10,10,"Date & Time");
param.getOverlay()->drawText(RGB(255,255,255),10,50,"Ref. No");

because...
1. User need to see the above details in the live image.
2. when i save the image at one condition.. the saved image must contain that details...

there is no problem in above....
but, when i do the image processing.... the overlay details distrubing me... how to avoid that overlay details on the time of processing the image...

also i attached a sample jpg file for u r reference...

plz.. help me...
thanks in advance

Stefan Geissler
January 21, 2008, 09:14:17
Selvanathan,


That is quite a hard task. If you want to have no graphic overlay in the image, that is in the sink path, then you must avoid drawing them in there. But then you must draw the graphics after your image processing into the bitmap and save it. These two tasks must be done on your own without Imgaging Control. If I remember correctly, I have sent the "Flickerfree drawing" sample to you. This shows, how to draw the Imaging Control Memory buffer into a HBTIMAP and draw some graphics on it. You would only need to add the saving functions in order to save the HBITMAP into a BMP file. For this task I have no sample yet.