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

NIB Johnson Controls Pneumatic Valve Actuator VG7441NT+3008E0 1" 2W 11.6 Cv
$124.76
NIB Johnson Controls Pneumatic Valve Actuator VG7441NT+3008E0 1Johnson Controls A19ADB-2 Temperature Controller USED
$45.99
Johnson Controls A19ADB-2 Temperature Controller  USED pictureNew Johnson ControlsT-5210-1001 Temp Transmitter
$24.99
New Johnson ControlsT-5210-1001 Temp Transmitter  pictureJohnson Controls F61KB-11C Flow Control Switch F61KB11C
$39.99
Johnson Controls F61KB-11C Flow Control Switch F61KB11C pictureJohnson Controls P70MA-18 Dual Pressure Control 500 PSIG Max P70MA18
$94.99
Johnson Controls P70MA-18 Dual Pressure Control 500 PSIG Max P70MA18 picture






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