BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-15-2005, 03:07 PM   #1 (permalink)
New Member
 
Join Date: Jun 2005
Model: 7290
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Image Manipulation

Please Login to Remove!

Hi

Side info - The blackberry browser has a nice feature in which it allows you to scroll an image vertically and horizontally smoothly with the wheel. It also allows you to save an image so that it can be viewed later.

Having said that, given an image that I have retrieved via my application and storing it in an array of bytes, I want to now display it on the browser so that I use that nice image manipulation and saving feature.

and oh, my images are .png

(Why invent the wheel when its allready been invented)

Any guesses on how to approach this problem will be helpful

Thanks
Offline  
Old 07-18-2005, 04:27 AM   #2 (permalink)
New Member
 
Join Date: Jul 2005
Model: 7100T
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

you need help to display the image? luckily i've just done this for another application, this should grab your image byte data and reassemble it to screen:

String bites = (String) store.getContents();
byte bytes[] = bites.getBytes();
Bitmap pngImg = Bitmap.createBitmapFromPNG(bytes,0,bytes.length);
myscreen.add(new BitmapField(pngImg));
Offline  
Old 07-18-2005, 04:52 PM   #3 (permalink)
New Member
 
Join Date: Jun 2005
Model: 7290
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jhfisher
you need help to display the image? luckily i've just done this for another application, this should grab your image byte data and reassemble it to screen:

String bites = (String) store.getContents();
byte bytes[] = bites.getBytes();
Bitmap pngImg = Bitmap.createBitmapFromPNG(bytes,0,bytes.length);
myscreen.add(new BitmapField(pngImg));
Thank you for answering. I have done that earlier, but it does not have the feature that allows me to move through the screen with my wheel to view a large image.

Example: Open a large image on the blackberry browser, you can press CONTROL and scroll using the wheel, you will scroll horizonatlly, without the CONTROL you will scroll vertically... etc. this is the main feature that i want to be able to perform.
Offline  
Old 07-19-2005, 05:07 AM   #4 (permalink)
New Member
 
Join Date: Jul 2005
Model: 7100T
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

ahh right, the answer may be to use net.rim.device.api.browser.field

that way you can display browser data in your apps, not tried it but it may mimic the behaviour you're after by default. other than that you may have to get dirty and knee deep in code.

Last edited by jhfisher : 07-19-2005 at 05:07 AM. Reason: typo
Offline  
Old 07-20-2005, 12:24 PM   #5 (permalink)
New Member
 
Join Date: Jun 2005
Model: 7290
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do you know of any other libraries where such a functionalty exist
(Other than using a browser)
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

Jelenko Commodore LS VPF Porcelain Oven
$1100.0
Jelenko Commodore LS VPF Porcelain Oven pictureComfort Products 60-5800T Commodore II Oversize Leather Chair with Adjustable
$301.27
Comfort Products 60-5800T Commodore II Oversize Leather Chair with Adjustable pictureWindsor Commodore CMD Self-Propelled Carpet Extractor Cleaner w/ Fastraction
$750.0
Windsor Commodore CMD Self-Propelled Carpet Extractor Cleaner w/ Fastraction picture17" Holt Commodore Floor Scrubber/sander
$95.99
178 x CM 8164 DRAM 64kx1 164 4864 IC Apple IIe Commodore 64 Oric IBM PC Soviet Era
$4.95
8 x CM 8164 DRAM 64kx1 164 4864 IC Apple IIe Commodore 64 Oric IBM PC Soviet Era picture






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