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





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