BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-15-2012, 04:26 AM   #1
janaknayangaljanak
Knows Where the Search Button Is
 
Join Date: May 2011
Model: 9800
PIN: N/A
Carrier: blackberry
Posts: 22
Post capture image programmatically

Please Login to Remove!

hello

i am trying to capture an image using a background thread without open any screen.....

using following code this code is working fine but i want to do all process in a background thread:

cameraPlayer = Manager
.createPlayer("capture://video?encoding=jpeg");
cameraPlayer.start();
// cameraPlayer.realize();
videoControl = (VideoControl) cameraPlayer
.getControl("VideoControl");
_videoField = (Field) videoControl.initDisplayMode(VideoControl.USE_GUI_ PRIMITIVE,
"net.rim.device.api.ui.Field");
add(_videoField);

Thread.sleep(1000);
String encoding = null;
if (_encodings != null) {
// Use the user-selected encoding instead.
encoding = _encodings[1].getFullEncoding();
}
byte[] imageByte = videoControl.getSnapshot(encoding);




Thanx
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: capture image programmatically
Thread Thread Starter Forum Replies Last Post
New App: imgEdit - All in one image editor for BBOS5+ Smiley8 Aftermarket Software 1 07-12-2010 09:50 AM
Bold Wallpapers [480x320] fabuloso BlackBerry Wallpapers 9 08-08-2009 12:08 PM
loading an image from the SD card yairw Developer Forum 4 10-13-2008 04:58 AM
Sync Error....What could it be? kurrupt_1 General 8300 Series Discussion - Curve 7 11-22-2007 07:41 PM
Step-by-step tutorial on creating custom BlackBerry device themes! d_fisher BlackBerry Themes 0 10-17-2006 07:30 AM


Vintage Apple Computer 4” Paper Cube Notepad Macintosh 80s 90s Office White picture

Vintage Apple Computer 4” Paper Cube Notepad Macintosh 80s 90s Office White

$39.95



Apple 1 Replica IC's: Vintage IC’s Many Types See List NOS 74XXX Types - Apple I picture

Apple 1 Replica IC's: Vintage IC’s Many Types See List NOS 74XXX Types - Apple I

$20.00



Vintage Letterpress Apple Printing Block Metal Wood Small 1 inch picture

Vintage Letterpress Apple Printing Block Metal Wood Small 1 inch

$7.99



Vintage Apple 1 16 Pin IC Socket - NOS  picture

Vintage Apple 1 16 Pin IC Socket - NOS

$3.99



Vintage Fionaa Apple Mens T-Shirt picture

Vintage Fionaa Apple Mens T-Shirt

$18.90



VINTAGE COLLECTIBLE / IBM / APPLE / POWERPC / MICROPROCESSOR CHIP / 90X8941 (JO) picture

VINTAGE COLLECTIBLE / IBM / APPLE / POWERPC / MICROPROCESSOR CHIP / 90X8941 (JO)

$9.99







Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.