BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 03-20-2009, 06:45 AM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Model: 8800
PIN: N/A
Carrier: BlackBerry Enterprise server
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to convert rgb565 bytearray data to EncodedImage or Bitmap

Please Login to Remove!

Hi all I am playing an video and I want to get snapshot of video as

byte [] byteArr = videoControl.getSnapshot("encoding=rgb565";

I try to get Bitmap as

image = EncodedImage.createEncodedImage(byteArr, 0, byteArr.length);
bitmap = image.getBitmap();

but It throws an Exception as IllegalArgumentException.
I get an array of double length that of screenWidth*ScreenHeight, may be because of rgb565

How can I convert byte[] to Bitmap.
Offline  
Old 03-21-2009, 12:21 AM   #2 (permalink)
New Member
 
Join Date: Mar 2009
Model: 8800
PIN: N/A
Carrier: BlackBerry Enterprise server
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Theres no one on forum to help me??????

Is my question was wrong or it has no solution ?

Please help me!
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

NEW JOHNSON CONTROLS V-3000-1 DIAPHRAGM ACTUATOR V30001
$49.95
NEW JOHNSON CONTROLS V-3000-1 DIAPHRAGM ACTUATOR V30001 pictureJohnson Controls t-5210-8112 UNUSED BOXED
$107.7
Johnson Controls t-5210-8112 UNUSED BOXED pictureJohnson Controls ep-1110-7003 EP- Converter 4-20 mA (DC)
$198.34
Johnson Controls ep-1110-7003 EP- Converter 4-20 mA (DC) pictureLOT OF 3 NIB JOHNSON CONTROLS C-5226-3 SIGNAL TRANSMITTERS 1:1 RATIO, C52263
$25.0
LOT OF 3 NIB JOHNSON CONTROLS C-5226-3 SIGNAL TRANSMITTERS 1:1 RATIO, C52263 pictureNEW Johnson Controls 251-460 D-251-460 Rubber Boot 5" NOS
$40.0
NEW Johnson Controls 251-460 D-251-460 Rubber Boot 5






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