Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Bitmap byte-level access

Bitmap byte-level access

Discuss OrbForms Designer and PocketC Architect

Postby jobie on Sat Jan 27, 2007 11:32 pm

I'm creating a single static bitmap object and I want to dynamically alter its content.

Is there a way to obtain a pointer to the buffer and stuff the bytes in quickly rather than doing a "for" loop and plotting each pixel by hand?

I know I can't dynamically create the bitmap object (right?) but this should be possible, right?

-John
jobie
 
Posts: 23
Joined: Wed Dec 27, 2006 8:53 pm
Location: USA

Postby dewey on Fri Feb 02, 2007 3:20 am

There is no way via OrbC to directly manipulate the bitmap buffer. However, if you can explain why you want to do this, maybe I (or someone else here) will have a better suggestion for accomplishing the same thing.
dewey
Site Admin
 
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Postby mlambrigger on Fri Feb 02, 2007 7:00 am

See Draw in the help

You will see you can create an offscreen buffer, draw a bitmap in and then draw it on the screen. If it is what you want to do.

If you want to alter a file and save it after, I don't know how to do.

I think you can open a file on a card, if you know how it is saved (data type and so on) and then alter it. If you want I know how to alter it on screen and how to display a bitmap on scrren to. This imported from an external file.

Marc Lambrigger
Marc Lambrigger
mlambrigger
 
Posts: 113
Joined: Fri Feb 13, 2004 11:07 am
Location: Switzerland

Postby jobie on Sat Feb 03, 2007 2:04 am

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by dewey</i>
<br />There is no way via OrbC to directly manipulate the bitmap buffer. However, if you can explain why you want to do this, maybe I (or someone else here) will have a better suggestion for accomplishing the same thing.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

Hi Jeremy,

I was experimenting with network development. I've written a PC-based client/server testbed that interfaces to Flickr. In a nutshell, a Palm client connects to this app and performs a search for some picture. The app will get the JPEGs resulting from the search, resize them appropriately for Palm display, and ideally transmit the raw (or perhaps RLE encoded) bitmap data to the remote Palm device. So the PC app is a go-between. (This is because there seems to be no way to decode JPEG's with OrbForms.)

So I want to use that stream of data to create my bitmap. Of course, it is possible to use Draw.pixel to manually plot every pixel data received, but that is not a good approach, given that the overhead could conceivably be a bottleneck on WiFi-enabled devices.

Most of my experimentation is to push OrbForms to see where it breaks and what problems I run into. I don't want to be partway through my app and hit an insurmountable brick wall. I really really love working with it, but it seems other products (such as handheld-basic) seem better equipped to deal with these types of projects. But I loathe BASIC.

On a more positive note, the app I created for my client using OrbForms was complete in record-time, it works nicely, and I was applauded for creating such a high-quality app in such a short time.

And the simple game I made (in 6 hours) has thus far earned me just over $200 in a 30-day period (NET!) so that has more than paid for the software.

Sorry for my rant here...in summary...I love OrbForms. The IDE is superb. IntelliSense-style code completion, parameter popups, etc. are all outstanding. The IDE has never crashed on me, not even one time. The language extensions you've made to C are logical and are basically most of the good parts of C++. Your support has been outstanding, if occasionally a little slow. No worries there, that's what forums are for, and usually I can sort things out on my own.

But if you could join forces with the handheld-basic folks and incorporate some of their functionality into your product, maybe creating a new product (Handheld-C maybe?) you would have THE killer SDK for Palm apps.

* Non-blocking TCP (and UDP)
* Native executables for better performance
* MP3 playback
* Video playback
* etc.

Not being critical, OrbForms is what it is. It's worth every nickel and more. A new product like what I'm describing though would be, IMHO, outstanding and a big seller.

-John
jobie
 
Posts: 23
Joined: Wed Dec 27, 2006 8:53 pm
Location: USA

Postby sangahm on Sat Feb 03, 2007 1:06 pm

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
And the simple game I made (in 6 hours) has thus far earned me just over $200 in a 30-day period (NET!) so that has more than paid for the software.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

Care to name that game software? Do you have it listed at any of the major sites (eg. Palmgear, Handango)?
sangahm
 
Posts: 118
Joined: Mon Jul 04, 2005 3:43 pm
Location: USA


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 3 guests

cron