| Reply | « Previous Thread | Next Thread » |
|
how can i put an image on the camera canvas i think the image should be transparent how can i do it while i am using VideoController.setFullScreen(true); i want an image to be shown on camera canvas and the remaning should be the camera canvas please help me to solve that its urgent.
Regards, M.Shouab |
|
If you want to overlay an image on top of the video or still images, you have to wait until JSR-234 (Advanced Multimedia Supplements API - more specifically camera features) is available on handsets. OverlayControl is the one you are probably looking for.
See a earlier thread here http://discussion.forum.nokia.com/fo...ad.php?t=76327 Hartti |
|
this thing is present in 6600 and and samsung x700 and these phones does not support overlay so how they achieve this any clue.
Regards Muhammad shouab |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi Muhammad,
guessing from what Hartti posted that's not possible on Nokia devices, in MIDP/JSR specification is noted that even if you can draw camera over canvas (direct mode) it's not guaranted that you will be able to draw something over video content because that all up to device manufacturer how to implement that (if choose to support or not), So that's how things are with current implementat of mobile media, but will change with future implementation (again what Hartti pointed), regards, peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
but wht about the applications in nokia 6600 is it possible in native code like c++ if it is then please provide me some link how to start development with symbian regards
Muhammad Shouab. |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi Muhammad,
i'm not C++ coder, could be possible or not, here is similiar discussion on Symbian section: http://discussion.forum.nokia.com/fo...ad.php?t=68270 I've remember similiar example from Sun WTK 2.5 samples (get video shapshot to image and then do anything you want with that image, but that's not the same as real-time overlay over video player/canvas, regards, Peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
will you please send me some sample code how it can be achieved through JSR 234 or some link where i can found this thanks in advance.
Regards, Muhammad Shouab |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi,
SUN WTK 2.5 beta comes with example codes for JSR-234: http://java.sun.com/products/sjwtool...nload-2_5.html Nokia Prototype 4 also supports that JSR: http://www.forum.nokia.com/main/0,6566,034-761,00.html and that recent doc from nokia comes with complete documentation for that JSR: online: http://www.forum.nokia.com/ME_Develo...ary/index.html download: http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html Note that there is no phone with that JSR from Nokia yet, as Hartti posted, so you can use emulators only, hth, regards, peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Hi peter,
thanks for your reply i have downloaded the SDK4.0 i am using Eclpise as IDE and its plugin EclipseME for J2ME development .i want to use jsr 234 feature but still its unable to compile the code wht should i do its cannot compile statement import javax.microedition.amms; what should i do please its urgent. the problem i configured is that when i select nokia SDK 4.0 it does not pick the amms.zip i am sick of that what should i do please recomend some thing. Regards , Muhammad Shouab
Last edited by mshouab : 2006-07-13 at 16:52.
|
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi Muhammad,
well, please do not start separate thread or new thread about the same question, you've already asked about that here: http://discussion.forum.nokia.com/fo...ad.php?t=84773 regards, Peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Hello Shoab,
I see your interested in overlaying one image on another. I have done some very similar to this. 1. By using CFbsBitmap I use Primitives such as setRect or DrawRect to draw whatever I want on top of the camera captured image. hence overlaying or mapping anything I want on the desired camera captured image. In order to perform things like this you have to study the SDK for Symbian Nokia FP2. Search for CFbsBitmap. 2. Another neat trick is to use OpenGL ES ( http://www.khronos.org/opengles/1_X/ ) for texture mapping. So you can load the image you want to overlay in a CFbsBitmap, keep it as a PixMap surface using OpenGL ES and then map it on anything else using OpenGL ES primitives which you read about here ( http://www.khronos.org/opengles/docu...tml/index.html ). You might want to start by studying the OpenGL ES examples provided with Symbian SDKs for example the simplecube example. I was able to capture show images from the cellphone camera and was able to render a moving and rotating cube on top of it. It looked really cool. Hope this helps. Mohsin |
| mohsin.sohail |
| View Public Profile |
| Find all posts by mohsin.sohail |
|
hey is there anyone give me some tutorial about JSR234 specially on overlay or any one who tried some example regarding that i am sick of that now there is nothing except its specification i have tried one example but when i add an image to overlay it does not show any thing on the canvas screen. please help me out or refer me some link to tutorial or something about JSR234 specially regarding about overlays.
Thx sohail but i want it on J2ME platform not on symbian thx alot. Regards, Muhammad Shouab |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi Muhammad,
have you looked into mentioned few times Sun WTK 2.5 samples already? it contains various samples in advanced multimedia suplements folder, for example if I remember well ImageEffectMidlet (or simliar name) which shows exactly what you want: Overlay effects, transposition, filters, etc, hth, regards, peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Hi Muhammad, there will be AMMS tutorials on Forum Nokia in the future, but not yet as those features are not yet available on real devices. I hope WTK samples help you in your development efforts.
Hartti |
|
i have done this through overlayControl if anyone intrested please post a reply or can contact me.
Regards, Muhammad Shouab |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Nokia N-Series Complete Model Line-Up | Dopod | General Discussion | 6 | 2008-07-22 21:16 |
| Camera API on Symbian 9.1 (Nokia N80) | srigans1 | Symbian Media (Graphics & Sounds) | 4 | 2007-10-20 06:31 |
| Waiting for capturing and saving the image by camera | sjsahu | General Symbian C++ | 2 | 2006-03-08 12:36 |
| Mixing and Synchronizing Camera Frame image with Off-Screen Bitmap... | zenitum | Symbian Media (Graphics & Sounds) | 0 | 2004-12-01 08:24 |
| Saving an image from the camera as JPEG | profoundwhispers | General Symbian C++ | 1 | 2004-10-18 10:35 |