03-25-2010 10:08 AM
I am trying to do a very simple thing turning out to be not so simple?
I just need to put a static transparent image on top of the preview area. The image has two distinct marks on it, the users while capturing shall see through top layer and adjust the lens with help of these markers.
I tried it following ways as both CLDC and MIdlet but when the preview appears it just put the image behind. I could see the image on the edages on the preview area.
1. Drawn the image at the same point of preview box on MainScreen class paint event
2. Put a bitmap at the same point of preview box
3. Run a delay thread and put a bitmap at the same point of preview box after the preview appears.
4. Created a custom 'Field' class and tried to get the preview feed on it - but that one errors out on getting feed.
I just need preview box behind and a static transparent image layer on top it.
Any pointer would be a great help.
03-25-2010 11:24 AM
This question has been asked before. You might find it if you search the forum. The reply, as I remember it from Mark Sohm was along the lines of "Drawing over the preview area is not supported". Sorry.
03-25-2010 11:37 AM
I feel bit sick to hit the Aceept as sol. button.. Wow. so take snaps at regular intervals like 10 mil sec. and spoof the user as if it was the real preview?
11-14-2010 10:52 PM
Has someone been able to add an OverlayControl to the camera viewfinder of a BlackBerry 6 device?
I am on how to do this. I have see this bit of code which is similar to what I want to do, but
Image outerFrame = Image.createImage("/outerFrame.png");
Image innerFrame = Image.createImage("/innerFrame.png");
OverlayControl overlay = myMediaProcessor.getControl ("javax.microedition.media.control.imageeffect.Ove
overlay.insertImage(outerFrame, 0,0,0); // order = 0
I can’t get to create “myMediaProcessor” the MediaProcessor.
What I want to do is make the viewfinder full screen [which I have done] and put an image overlay with a 20 pixel border around it. Also I need to add some small images on top of the viewfinder [similar to how the BB 6 camera controls on screen]
I have been at this for a while with no success, so any help or guidance would be much appreciated.
Thanks in advance!
11-15-2010 10:03 AM
Doesn't OverlayControl in 5.0+ give them what they need?
11-15-2010 10:15 AM
Thank you everyone for the comments.
At least can I draw 2 lines over the viewfinder so the users can centre the object better?
If yes please give me some guidance on how I can achieve this.
Thanks in advance.
11-15-2010 11:12 AM
Thanks for that, I have never used or noted that class.
Everyone, please ignore my posts on this Thread if running OS 5.0 or later.....
11-15-2010 11:16 AM
11-15-2010 11:51 AM
I think OverlayControl is one of the controls that doesn't work (as in not implemented).