BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 04-19-2010, 11:06 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2008
Model: 8800
PIN: N/A
Carrier: O2
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Mutable Image maximum size?

Please Login to Remove!

Is there a maximum size that a mutable image can have?

I am creating a mutable image in which i draw the contents of a text file. The width of the image is equal with the screen's width while the height of the image depends on the amount of text that is read from the file. A lot of text, results in a large image height (=m_lastLineY).

I am testing the application on a Blackberry 9700 simulator. When the text that is read from the file is small, the image is created and displayed correctly. However, when the file contains a lot of text (imgHeight = 6900), an exception is thrown in

PHP Code:
graphics im.getGraphics(); 
Is this because of the image height? The same thing works fine on a lot of sony ericsson and nokia emulators.

PHP Code:
m_screenWidth midlet.getWidth();

m_lastLineY getLastLineCoordinate(m_textm_leftMarginm_topMarginm_screenWidth);

// Create mutable image
im Image.createImage(m_screenWidthm_lastLineY);

int imgWidth im.getWidth();
int imgHeight im.getHeight();

Graphics graphics null;

// Get graphics object to draw onto the image
try {
   
graphics im.getGraphics();
} catch (
Exception e) {


I am using lwuit for the image. This is not the problem though since I tried it with lcdui.Image and I get the same error.

Last edited by polys : 04-19-2010 at 11:07 AM.
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

Sylvania ECG779-1 IC TV Signal Processor BW Color NTE779 - NOS Qty 1
$8.99
Sylvania ECG779-1 IC TV Signal Processor BW Color NTE779 - NOS Qty 1 pictureSylvania ECG1266 IC VCR Chroma Processor Equivilant AN305 NTE1266 NOS Qty 1
$7.99
Sylvania ECG1266 IC VCR Chroma Processor Equivilant AN305 NTE1266 NOS Qty 1 pictureSylvania ECG1556 IC TV VIR Signal Processor Equivilant NTE1556 NOS Qty 1
$8.99
Sylvania ECG1556 IC TV VIR Signal Processor Equivilant NTE1556 NOS Qty 1 pictureAllen Bradley, SLC 500, 1747-CP3, Processor RS-232 Cable, SER A, New in Bag
$60.0
Allen Bradley, SLC 500, 1747-CP3, Processor RS-232 Cable, SER A, New in Bag pictureKODAK DIAGNOSTIC IMAGING X-OMAT M35A X-RAY FILM PROCESSOR
$199.99
KODAK DIAGNOSTIC IMAGING X-OMAT M35A X-RAY FILM PROCESSOR  picture






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